class BinaryFormatter implements FormatterInterface

This propagator contains the method for serializaing and deserializing SpanContext over a binary format.

See specification for the encoding specification.

Constants

OPTION_ENABLED

Methods

deserialize($bin)

Generate a SpanContext object from the Trace Context header

string
serialize(SpanContext $context)

Convert a SpanContext to header string

Details

at line 40
SpanContext deserialize($bin)

Generate a SpanContext object from the Trace Context header

Parameters

$bin

Return Value

SpanContext

at line 60
string serialize(SpanContext $context)

Convert a SpanContext to header string

Parameters

SpanContext $context

Return Value

string