Package brave.grpc
Class GrpcTracing.Builder
- java.lang.Object
-
- brave.grpc.GrpcTracing.Builder
-
- Enclosing class:
- GrpcTracing
public static final class GrpcTracing.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GrpcTracingbuild()GrpcTracing.BuilderclientParser(GrpcClientParser clientParser)Deprecated.GrpcTracing.BuildergrpcPropagationFormatEnabled(boolean grpcPropagationFormatEnabled)Deprecated.The only user of this format was Census, which was removed from gRPC in version v1.27.GrpcTracing.BuilderserverParser(GrpcServerParser serverParser)Deprecated.
-
-
-
Method Detail
-
clientParser
@Deprecated public GrpcTracing.Builder clientParser(GrpcClientParser clientParser)
Deprecated.- See Also:
GrpcClientRequest,GrpcClientResponse
-
serverParser
@Deprecated public GrpcTracing.Builder serverParser(GrpcServerParser serverParser)
Deprecated.- See Also:
GrpcServerRequest,GrpcServerResponse
-
grpcPropagationFormatEnabled
@Deprecated public GrpcTracing.Builder grpcPropagationFormatEnabled(boolean grpcPropagationFormatEnabled)
Deprecated.The only user of this format was Census, which was removed from gRPC in version v1.27.When true, "grpc-trace-bin" is preferred when extracting trace context. This is useful when OpenCensus implements tracing upstream or downstream. Default is false.This wraps an existing propagation implementation, but prefers extracting "grpc-trace-bin" when parsing gRPC metadata. Regardless of whether "grpc-trace-bin" was parsed, it is speculatively written on outgoing requests.
When present, "grpc-tags-bin" is propagated pass-through. We do not alter it.
Warning: the format of both "grpc-trace-bin" is version 0. As such, consider this feature experimental.
-
build
public GrpcTracing build()
-
-