ptrace

package
v0.49.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 562

Documentation

Index

Constants

View Source
const (
	SpanKindUnspecified = internal.SpanKindUnspecified
	SpanKindInternal    = internal.SpanKindInternal
	SpanKindServer      = internal.SpanKindServer
	SpanKindClient      = internal.SpanKindClient
	SpanKindProducer    = internal.SpanKindProducer
	SpanKindConsumer    = internal.SpanKindConsumer
)
View Source
const (
	StatusCodeUnset = internal.StatusCodeUnset
	StatusCodeOk    = internal.StatusCodeOk
	StatusCodeError = internal.StatusCodeError
)
View Source
const (
	TraceStateEmpty = internal.TraceStateEmpty
)

Variables

View Source
var NewResourceSpans = internal.NewResourceSpans

NewResourceSpans is an alias for a function to create a new empty ResourceSpans.

View Source
var NewResourceSpansSlice = internal.NewResourceSpansSlice

NewResourceSpansSlice is an alias for a function to create ResourceSpansSlice.

View Source
var NewScopeSpans = internal.NewScopeSpans

NewScopeSpans is an alias for a function to create a new empty ScopeSpans.

View Source
var NewScopeSpansSlice = internal.NewScopeSpansSlice

NewScopeSpansSlice is an alias for a function to create ScopeSpansSlice.

View Source
var NewSpan = internal.NewSpan

NewSpan is an alias for a function to create a new empty Span.

View Source
var NewSpanEvent = internal.NewSpanEvent

NewSpanEvent is an alias for a function to create a new empty SpanEvent.

View Source
var NewSpanEventSlice = internal.NewSpanEventSlice

NewSpanEventSlice is an alias for a function to create SpanEventSlice.

View Source
var NewSpanLink = internal.NewSpanLink

NewSpanLink is an alias for a function to create a new empty SpanLink.

View Source
var NewSpanLinkSlice = internal.NewSpanLinkSlice

NewSpanLinkSlice is an alias for a function to create SpanLinkSlice.

View Source
var NewSpanSlice = internal.NewSpanSlice

NewSpanSlice is an alias for a function to create SpanSlice.

View Source
var NewSpanStatus = internal.NewSpanStatus

NewSpanStatus is an alias for a function to create a new empty SpanStatus.

View Source
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 Span

type Span = internal.Span

Span is an alias for internal.Span struct.

type SpanEvent

type SpanEvent = internal.SpanEvent

SpanEvent is an alias for internal.SpanEvent struct.

type SpanEventSlice

type SpanEventSlice = internal.SpanEventSlice

SpanEventSlice is an alias for internal.SpanEventSlice struct.

type SpanKind

type SpanKind = internal.SpanKind

SpanKind is an alias for internal.SpanKind type.

type SpanLink = internal.SpanLink

SpanLink is an alias for internal.SpanLink struct.

type SpanLinkSlice

type SpanLinkSlice = internal.SpanLinkSlice

SpanLinkSlice is an alias for internal.SpanLinkSlice struct.

type SpanSlice

type SpanSlice = internal.SpanSlice

SpanSlice is an alias for internal.SpanSlice 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 Traces

type Traces = internal.Traces

Traces is an alias for internal.Traces struct.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL