Commit a1fb0914 by 万齐军

APM 网络分析无插件接入,去掉接口错误上报

parent cd2b5f93
......@@ -4,7 +4,7 @@ def mavenRepositoryUrl = "http://nexus.yidianling.com/repository/AndroidReleases
def getVersionName() {
def publishVersion = rootProject.ext.ydl2PublishVersion
return isLocal() ? publishVersion + "-LOCAL" : publishVersion
return publishVersion
}
def isLocal(){
Properties properties = new Properties()
......
......@@ -39,6 +39,7 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.volcengine:apm_insight:1.4.6.cn'
api rootProject.ext.dependencies["gson"]
api rootProject.ext.dependencies["aliyun"]
......
......@@ -4,6 +4,7 @@ import android.content.Context;
import android.text.TextUtils;
import android.widget.Toast;
import com.bytedance.apm.agent.instrumentation.OkHttp3Instrumentation;
import com.ydl.ydlnet.builder.cookie.CookieJarImpl;
import com.ydl.ydlnet.builder.cookie.store.CookieStore;
import com.ydl.ydlnet.builder.factory.ApiFactory;
......@@ -206,7 +207,7 @@ public class OkHttpConfig {
setDebugConfig();
setProxy();
okHttpClient = okHttpClientBuilder.build();
okHttpClient = OkHttp3Instrumentation.build(okHttpClientBuilder);
return okHttpClient;
}
......
......@@ -142,8 +142,8 @@ class HttpConfig {
commonParams(),
requestHead(appName),
addEncryptionHeaderParamsInterceptor(),
responseErrorInterceptor(),
respErrorInterceptor()
responseErrorInterceptor()
// respErrorInterceptor()
)
.setRequestHandler(getRequestHandler())
.setReadTimeout(15)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment