GrpcMetadataPropagator
class GrpcMetadataPropagator implements PropagatorInterface
This propagator contains the logic for propagating SpanContext over grpc using its request metadata. It will default to using the BinaryFormatter to serialize/deserialize SpanContext.
Constants
DEFAULT_METADATA_KEY |
|
Methods
Create a new GrpcMetadataPropagator
Generate a SpanContext object from the all the HTTP headers
Persiste the current SpanContext back into the results of this request
Fetch the formatter for propagating the SpanContext
Return the key used to propagate the SpanContext
Details
at line 49
__construct(FormatterInterface $formatter = null, string $key = null)
Create a new GrpcMetadataPropagator
at line 61
SpanContext
extract(array $metadata)
Generate a SpanContext object from the all the HTTP headers
at line 76
array
inject(SpanContext $context, $metadata)
Persiste the current SpanContext back into the results of this request
at line 87
FormatterInterface
formatter()
Fetch the formatter for propagating the SpanContext
at line 97
string
key()
Return the key used to propagate the SpanContext