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 ¶ added in v0.16.0
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) IsEmpty ¶ added in v0.19.0
IsEmpty returns true if id contains at least one non-zero byte.
func (SpanID) MarshalJSON ¶ added in v0.16.0
MarshalJSON converts SpanID into a hex string enclosed in quotes.
func (*SpanID) MarshalTo ¶ added in v0.16.0
MarshalTo converts trace ID into a binary representation. Called by Protobuf serialization.
func (*SpanID) Unmarshal ¶ added in v0.16.0
Unmarshal inflates this trace ID from binary representation. Called by Protobuf serialization.
func (*SpanID) UnmarshalJSON ¶ added in v0.16.0
UnmarshalJSON decodes SpanID from hex string, possibly enclosed in quotes. Called by Protobuf JSON deserialization.
type TraceID ¶ added in v0.16.0
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 ¶ added in v0.16.0
NewTraceID creates a TraceID from a byte slice.
func (TraceID) IsEmpty ¶ added in v0.19.0
IsEmpty returns true if id contains at leas one non-zero byte.
func (TraceID) MarshalJSON ¶ added in v0.16.0
MarshalJSON converts trace id into a hex string enclosed in quotes.
func (*TraceID) MarshalTo ¶ added in v0.16.0
MarshalTo converts trace ID into a binary representation. Called by Protobuf serialization.
func (*TraceID) Unmarshal ¶ added in v0.16.0
Unmarshal inflates this trace ID from binary representation. Called by Protobuf serialization.
func (*TraceID) UnmarshalJSON ¶ added in v0.16.0
UnmarshalJSON inflates trace id from hex string, possibly enclosed in quotes. Called by Protobuf JSON deserialization.