Documentation ¶
Overview ¶
Package otelstorage contains common types and utilities for storing OpenTelemetry data.
Index ¶
Constants ¶
const MapStackThreshold = 32
MapStackThreshold defines common constant for on-stack Attrs sorting.
Variables ¶
This section is empty.
Functions ¶
func AppendKeyToLabel ¶ added in v0.15.0
AppendKeyToLabel converts key to label name and appends it to given buffer.
func KeyToLabel ¶ added in v0.1.0
KeyToLabel converts key to label name.
Types ¶
type Attrs ¶
Attrs wraps attributes.
type Hash ¶ added in v0.1.0
type Hash [16]byte
Hash is an attribute hash.
type SpanID ¶
type SpanID [8]byte
SpanID is OpenTelemetry span ID.
func SpanIDFromUint64 ¶
SpanIDFromUint64 creates new SpanID from uint64.
type Timestamp ¶
Timestamp is a time specified as UNIX Epoch time in nanoseconds since 1970-01-01 00:00:00 +0000 UTC.
func NewTimestampFromTime ¶
NewTimestampFromTime creates new Timestamp from time.Time.
type TraceID ¶
type TraceID [16]byte
TraceID is OpenTelemetry trace ID.
func ParseTraceID ¶
ParseTraceID parses trace ID from given string.
Deals with missing leading zeroes.