okhttp: disable census when in GAE+JDK7 (#3696)

Disable census for now due to:
https://github.com/census-instrumentation/opencensus-java/issues/777
This commit is contained in:
zpencer 2017-11-13 10:16:06 -08:00 committed by GitHub
parent ca9a41a46e
commit 12df89b062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,12 @@ public class OkHttpChannelBuilder extends
private OkHttpChannelBuilder(String target) {
super(target);
// TODO(zpencer): re-enable after census issue is resolved
// census-instrumentation/opencensus-java/issues/777
if (GrpcUtil.IS_RESTRICTED_APPENGINE) {
setTracingEnabled(false);
setStatsEnabled(false);
}
}
/**