[3.4.0][Feat]集成btrace,默认注释掉

This commit is contained in:
chenfufeng
2023-07-13 16:38:51 +08:00
parent 70ac18f9af
commit 7f3dc90200
5 changed files with 14 additions and 1 deletions

View File

@@ -38,8 +38,8 @@ buildscript {
classpath "com.mogo.sticky:service:${plugin_version}"
classpath "io.github.knight-zxw:lancet-plugin:${lancetx_plugin_version}"
// classpath ("com.tencent.matrix:matrix-gradle-plugin:0.6.6") { changing = true }
classpath 'com.mogo.cloud:matrix:1.0.0'
// classpath 'com.bytedance.btrace:rhea-gradle-plugin:2.0.0'
}
// 遇无法更新依赖情况针对Snapshot无法刷新然后sync project即可刷新完成注释该代码
// configurations.all {

View File

@@ -217,6 +217,7 @@ ext {
thread_opt : "com.mogo.thread.opt:lib:${plugin_version}",
weak_network : "com.mogo.weak:network:1.0.0",
btrace : "com.bytedance.btrace:rhea-core:2.0.0",
mofang_runtime : "com.mogo.eagle.core.mofang:runtime:2.0.6",
log_runtime : "com.mogo.eagle.core.log.record:runtime:1.0.6"

View File

@@ -97,6 +97,7 @@ dependencies {
implementation group: "com.tencent.matrix", name: "matrix-io-canary", version: MATRIX_VERSION, changing: true
implementation group: "com.tencent.matrix", name: "matrix-hooks", version: MATRIX_VERSION, changing: true
implementation rootProject.ext.dependencies.weak_network
// implementation rootProject.ext.dependencies.btrace
implementation project(':foudations:mogo-commons')
implementation project(':core:mogo-core-utils')

View File

@@ -17,4 +17,5 @@ if (!isAndroidTest) {
apply from: rootProject.file('gradle/bytex/bytex_apm.gradle')
apply from: rootProject.file('gradle/bytex/bytex_systrace.gradle')
apply from: rootProject.file('gradle/bytex/bytex_matrix.gradle')
// apply from: rootProject.file('gradle/bytex/bytex_btrace.gradle')
}

View File

@@ -0,0 +1,10 @@
if (!rootProject.isReleaseBuild()) {
apply plugin: 'com.bytedance.rhea-trace'
rheaTrace {
compilation {
traceFilterFilePath = "${project.rootDir}/trace-filter/traceFilter.txt"
needPackageWithMethodMap = false
applyMethodMappingFilePath = ""
}
}
}