Documentation
¶
Index ¶
- Constants
- Variables
- type Marshaler
- type ResourceSpans
- type ResourceSpansSlice
- type ScopeSpans
- type ScopeSpansSlice
- type Sizer
- type Span
- type SpanEvent
- type SpanEventSlice
- type SpanKind
- type SpanLink
- type SpanLinkSlice
- type SpanSlice
- type SpanStatus
- type StatusCode
- type TraceState
- type Traces
- type Unmarshaler
Constants ¶
const ( SpanKindUnspecified = internal.SpanKindUnspecified SpanKindInternal = internal.SpanKindInternal SpanKindServer = internal.SpanKindServer SpanKindClient = internal.SpanKindClient SpanKindProducer = internal.SpanKindProducer SpanKindConsumer = internal.SpanKindConsumer )
const ( StatusCodeUnset = internal.StatusCodeUnset StatusCodeOk = internal.StatusCodeOk StatusCodeError = internal.StatusCodeError )
const (
TraceStateEmpty = internal.TraceStateEmpty
)
Variables ¶
var NewResourceSpans = internal.NewResourceSpans
NewResourceSpans is an alias for a function to create a new empty ResourceSpans.
var NewResourceSpansSlice = internal.NewResourceSpansSlice
NewResourceSpansSlice is an alias for a function to create ResourceSpansSlice.
var NewScopeSpans = internal.NewScopeSpans
NewScopeSpans is an alias for a function to create a new empty ScopeSpans.
var NewScopeSpansSlice = internal.NewScopeSpansSlice
NewScopeSpansSlice is an alias for a function to create ScopeSpansSlice.
var NewSpan = internal.NewSpan
NewSpan is an alias for a function to create a new empty Span.
var NewSpanEvent = internal.NewSpanEvent
NewSpanEvent is an alias for a function to create a new empty SpanEvent.
var NewSpanEventSlice = internal.NewSpanEventSlice
NewSpanEventSlice is an alias for a function to create SpanEventSlice.
var NewSpanLink = internal.NewSpanLink
NewSpanLink is an alias for a function to create a new empty SpanLink.
var NewSpanLinkSlice = internal.NewSpanLinkSlice
NewSpanLinkSlice is an alias for a function to create SpanLinkSlice.
var NewSpanSlice = internal.NewSpanSlice
NewSpanSlice is an alias for a function to create SpanSlice.
var NewSpanStatus = internal.NewSpanStatus
NewSpanStatus is an alias for a function to create a new empty SpanStatus.
var NewTraces = internal.NewTraces
NewTraces is an alias for a function to create new Traces.
Functions ¶
This section is empty.
Types ¶
type Marshaler ¶
type Marshaler interface { // MarshalTraces the given pdata.Traces into bytes. // If the error is not nil, the returned bytes slice cannot be used. MarshalTraces(td Traces) ([]byte, error) }
Marshaler marshals pdata.Traces into bytes.
func NewJSONMarshaler ¶
func NewJSONMarshaler() Marshaler
NewJSONMarshaler returns a model.Marshaler. Marshals to OTLP json bytes.
func NewProtoMarshaler ¶
func NewProtoMarshaler() Marshaler
NewProtoMarshaler returns a Marshaler. Marshals to OTLP binary protobuf bytes.
type ResourceSpans ¶
type ResourceSpans = internal.ResourceSpans
ResourceSpans is an alias for internal.ResourceSpans struct.
type ResourceSpansSlice ¶
type ResourceSpansSlice = internal.ResourceSpansSlice
ResourceSpansSlice is an alias for internal.ResourceSpansSlice struct.
type ScopeSpans ¶
type ScopeSpans = internal.ScopeSpans
ScopeSpans is an alias for internal.ScopeSpans struct.
type ScopeSpansSlice ¶
type ScopeSpansSlice = internal.ScopeSpansSlice
ScopeSpansSlice is an alias for internal.ScopeSpansSlice struct.
type Sizer ¶
type Sizer interface { // TracesSize returns the size in bytes of a marshaled Traces. TracesSize(td Traces) int }
Sizer is an optional interface implemented by the Marshaler, that calculates the size of a marshaled Traces.
type SpanEventSlice ¶
type SpanEventSlice = internal.SpanEventSlice
SpanEventSlice is an alias for internal.SpanEventSlice struct.
type SpanLinkSlice ¶
type SpanLinkSlice = internal.SpanLinkSlice
SpanLinkSlice is an alias for internal.SpanLinkSlice struct.
type SpanStatus ¶
type SpanStatus = internal.SpanStatus
SpanStatus is an alias for internal.SpanStatus struct.
type StatusCode ¶
type StatusCode = internal.StatusCode
StatusCode is an alias for internal.StatusCode type.
type TraceState ¶
type TraceState = internal.TraceState
TraceState is an alias for internal.TraceState type.
type Unmarshaler ¶
type Unmarshaler interface { // UnmarshalTraces the given bytes into pdata.Traces. // If the error is not nil, the returned pdata.Traces cannot be used. UnmarshalTraces(buf []byte) (Traces, error) }
Unmarshaler unmarshalls bytes into pdata.Traces.
func NewJSONUnmarshaler ¶
func NewJSONUnmarshaler() Unmarshaler
NewJSONUnmarshaler returns a model.Unmarshaler. Unmarshals from OTLP json bytes.
func NewProtoUnmarshaler ¶
func NewProtoUnmarshaler() Unmarshaler
NewProtoUnmarshaler returns a model.Unmarshaler. Unmarshals from OTLP binary protobuf bytes.