Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpanID ¶
type SpanID [spanIDSize]byte
SpanID is a custom data type that is used for all span_id fields in OTLP Protobuf messages.
func (SpanID) MarshalJSON ¶
MarshalJSON converts SpanID into a hex string enclosed in quotes.
func (SpanID) MarshalTo ¶
MarshalTo converts trace ID into a binary representation. Called by Protobuf serialization.
func (*SpanID) Unmarshal ¶
Unmarshal inflates this trace ID from binary representation. Called by Protobuf serialization.
func (*SpanID) UnmarshalJSON ¶
UnmarshalJSON decodes SpanID from hex string, possibly enclosed in quotes. Called by Protobuf JSON deserialization.
type TraceID ¶
type TraceID [traceIDSize]byte
TraceID is a custom data type that is used for all trace_id fields in OTLP Protobuf messages.
func (TraceID) MarshalJSON ¶
MarshalJSON converts trace id into a hex string enclosed in quotes.
func (TraceID) MarshalTo ¶
MarshalTo converts trace ID into a binary representation. Called by Protobuf serialization.
func (*TraceID) Unmarshal ¶
Unmarshal inflates this trace ID from binary representation. Called by Protobuf serialization.
func (*TraceID) UnmarshalJSON ¶
UnmarshalJSON inflates trace id from hex string, possibly enclosed in quotes. Called by Protobuf JSON deserialization.