io.opentracing.contrib.grpc.TracingClientInterceptor Java Examples
The following examples show how to use
io.opentracing.contrib.grpc.TracingClientInterceptor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GrpcChannelBuilderFactory.java From dremio-oss with Apache License 2.0 | 5 votes |
private void addDefaultBuilderProperties(ManagedChannelBuilder<?> builder) { final TracingClientInterceptor interceptor = TracingClientInterceptor .newBuilder() .withTracer(tracer) .build(); builder.intercept(interceptor) .enableRetry() .maxRetryAttempts(MAX_RETRY); }
Example #2
Source File: GrpcAgentIntercept.java From java-specialagent with Apache License 2.0 | 4 votes |
public static Object build(final Object channel) { return ClientInterceptors.intercept((Channel)channel, TracingClientInterceptor.newBuilder().build()); }