Documentation ¶
Index ¶
- type SpanID
- func (sid SpanID) Bytes() [8]byte
- func (sid SpanID) Equal(that SpanID) bool
- func (sid SpanID) HexString() string
- func (sid SpanID) IsEmpty() bool
- func (sid SpanID) MarshalJSON() ([]byte, error)
- func (sid *SpanID) MarshalTo(data []byte) (n int, err error)
- func (sid *SpanID) Size() int
- func (sid *SpanID) Unmarshal(data []byte) error
- func (sid *SpanID) UnmarshalJSON(data []byte) error
- type TraceID
- func (tid TraceID) Bytes() [16]byte
- func (tid TraceID) Equal(that TraceID) bool
- func (tid TraceID) HexString() string
- func (tid TraceID) IsEmpty() bool
- func (tid TraceID) MarshalJSON() ([]byte, error)
- func (tid *TraceID) MarshalTo(data []byte) (n int, err error)
- func (tid *TraceID) Size() int
- func (tid *TraceID) Unmarshal(data []byte) error
- func (tid *TraceID) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpanID ¶
type SpanID struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
TraceID is a custom data type that is used for all trace_id fields in OTLP Protobuf messages.
func NewTraceID ¶
NewTraceID creates a TraceID from a byte slice.
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.