E
- Type of the transmission format to be decoded/encoded.HttpHeaderV1PropagationCodec
public interface PropagationCodec<E>
PropagationContext
and some transmission format of
trace data, such as an HTTP header.
Propagation
contains helpers for this.
Since tracing instrumentation should not be invasive, implementations of this interface must avoid throwing exceptions, and instead return "empty" return values - highlight issues through logging.
Modifier and Type | Method | Description |
---|---|---|
PropagationContext |
decode(E encodedTrace) |
Decode some transmission format into a propagation context.
|
Optional<E> |
encode(PropagationContext context) |
Encode the propagation context into a transmission format.
|
PropagationContext decode(E encodedTrace)
encodedTrace
- to decode to trace.Optional<E> encode(PropagationContext context)
context
- to encodeCopyright © 2019–2020 Honeycomb. All rights reserved.