本文整理了Java中brave.Tracing.errorParser()
方法的一些代码示例,展示了Tracing.errorParser()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tracing.errorParser()
方法的具体详情如下:
包路径:brave.Tracing
类名称:Tracing
方法名:errorParser
暂无
代码示例来源:origin: openzipkin/brave
Builder(Tracing tracing) {
this.tracing = tracing;
// override to re-use any custom error parser from the tracing component
ErrorParser errorParser = tracing.errorParser();
clientParser = new GrpcClientParser() {
@Override protected ErrorParser errorParser() {
return errorParser;
}
};
serverParser = new GrpcServerParser() {
@Override protected ErrorParser errorParser() {
return errorParser;
}
};
}
代码示例来源:origin: openzipkin/brave
Builder(Tracing tracing) {
if (tracing == null) throw new NullPointerException("tracing == null");
final ErrorParser errorParser = tracing.errorParser();
this.tracing = tracing;
this.serverName = "";
// override to re-use any custom error parser from the tracing component
this.clientParser = new HttpClientParser() {
@Override protected ErrorParser errorParser() {
return errorParser;
}
};
this.serverParser = new HttpServerParser() {
@Override protected ErrorParser errorParser() {
return errorParser;
}
};
this.clientSampler = HttpSampler.TRACE_ID;
this.serverSampler(HttpSampler.TRACE_ID);
}
代码示例来源:origin: io.zipkin.brave/brave-instrumentation-grpc
Builder(Tracing tracing) {
this.tracing = tracing;
// override to re-use any custom error parser from the tracing component
ErrorParser errorParser = tracing.errorParser();
clientParser = new GrpcClientParser() {
@Override protected ErrorParser errorParser() {
return errorParser;
}
};
serverParser = new GrpcServerParser() {
@Override protected ErrorParser errorParser() {
return errorParser;
}
};
}
内容来源于网络,如有侵权,请联系作者删除!