Documentation ¶
Overview ¶
Package otelstorage contains common types and utilities for storing OpenTelemetry data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attrs ¶
Attrs is a YSON wrapper for attributes.
func (Attrs) MarshalYSON ¶
MarshalYSON implemenets yson.StreamMarshaler.
type SpanID ¶
type SpanID [8]byte
SpanID is OpenTelemetry span ID.
func SpanIDFromUint64 ¶
SpanIDFromUint64 creates new SpanID from uint64.
func (SpanID) MarshalYSON ¶
MarshalYSON implemenets yson.StreamMarshaler.
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.
func (TraceID) MarshalYSON ¶
MarshalYSON implemenets yson.StreamMarshaler.
Click to show internal directories.
Click to hide internal directories.