Package io.grpc.opentelemetry
Class MetadataSetter
java.lang.Object
io.grpc.opentelemetry.MetadataSetter
- All Implemented Interfaces:
io.opentelemetry.context.propagation.TextMapSetter<io.grpc.Metadata>
final class MetadataSetter
extends Object
implements io.opentelemetry.context.propagation.TextMapSetter<io.grpc.Metadata>
A
TextMapSetter
that sets value to gRPC Metadata
. Supports both text and binary
headers. Supporting binary header is an optimization path for GrpcTraceBinContextPropagator
to work around the lack of binary propagator API and thus avoid
base64 (de)encoding when passing data between propagator API interfaces.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
-
INSTANCE
-
-
Constructor Details
-
MetadataSetter
MetadataSetter()
-
-
Method Details
-
getInstance
-
set
- Specified by:
set
in interfaceio.opentelemetry.context.propagation.TextMapSetter<io.grpc.Metadata>
-
set
-