[−][src]Trait opentelemetry::api::propagation::binary_propagator::BinaryFormat
Used to serialize and deserialize SpanContext
s to and from a binary
representation.
Required methods
fn to_bytes(&self, context: &SpanContext) -> [u8; 29]
Serializes span context into a byte array and returns the array.
fn from_bytes(&self, bytes: Vec<u8>) -> SpanContext
Deserializes a span context from a byte array.
Implementors
impl BinaryFormat for BinaryPropagator
[src]
fn to_bytes(&self, context: &SpanContext) -> [u8; 29]
[src]
Serializes span context into a byte array and returns the array.
fn from_bytes(&self, bytes: Vec<u8>) -> SpanContext
[src]
Deserializes a span context from a byte array.
impl BinaryFormat for NoopBinaryFormat
[src]
fn to_bytes(&self, _context: &SpanContext) -> [u8; 29]
[src]
fn from_bytes(&self, _bytes: Vec<u8>) -> SpanContext
[src]
Always returns invalid span contexts