brave.Tracing.errorParser()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中brave.Tracing.errorParser()方法的一些代码示例,展示了Tracing.errorParser()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tracing.errorParser()方法的具体详情如下:
包路径:brave.Tracing
类名称:Tracing
方法名:errorParser

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;
  }
 };
}

相关文章