Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfileID ¶ added in v1.15.0
type ProfileID [profileIDSize]byte
ProfileID is a custom data type that is used for all profile_id fields in OTLP Protobuf messages.
func (ProfileID) IsEmpty ¶ added in v1.15.0
IsEmpty returns true if id contains at leas one non-zero byte.
func (ProfileID) MarshalJSON ¶ added in v1.15.0
MarshalJSON converts profile id into a hex string enclosed in quotes.
func (ProfileID) MarshalTo ¶ added in v1.15.0
MarshalTo converts profile ID into a binary representation. Called by Protobuf serialization.
func (*ProfileID) Unmarshal ¶ added in v1.15.0
Unmarshal inflates this profile ID from binary representation. Called by Protobuf serialization.
func (*ProfileID) UnmarshalJSON ¶ added in v1.15.0
UnmarshalJSON inflates profile id from hex string, possibly enclosed in quotes. Called by Protobuf JSON deserialization.
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.