data

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 NewSpanID added in v0.16.0

func NewSpanID(bytes [8]byte) SpanID

NewSpanID creates a SpanID from a byte slice.

func (SpanID) Bytes added in v0.16.0

func (sid SpanID) Bytes() [8]byte

Bytes returns the byte array representation of the SpanID.

func (SpanID) Equal added in v0.16.0

func (sid SpanID) Equal(that SpanID) bool

Equal returns true if ids are equal.

func (SpanID) HexString added in v0.16.0

func (sid SpanID) HexString() string

HexString returns hex representation of the ID.

func (SpanID) IsEmpty added in v0.19.0

func (sid SpanID) IsEmpty() bool

IsEmpty returns true if id contains at least one non-zero byte.

func (SpanID) MarshalJSON added in v0.16.0

func (sid SpanID) MarshalJSON() ([]byte, error)

MarshalJSON converts SpanID into a hex string enclosed in quotes.

func (*SpanID) MarshalTo added in v0.16.0

func (sid *SpanID) MarshalTo(data []byte) (n int, err error)

MarshalTo converts trace ID into a binary representation. Called by Protobuf serialization.

func (*SpanID) Size added in v0.16.0

func (sid *SpanID) Size() int

Size returns the size of the data to serialize.

func (*SpanID) Unmarshal added in v0.16.0

func (sid *SpanID) Unmarshal(data []byte) error

Unmarshal inflates this trace ID from binary representation. Called by Protobuf serialization.

func (*SpanID) UnmarshalJSON added in v0.16.0

func (sid *SpanID) UnmarshalJSON(data []byte) error

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

func NewTraceID(bytes [16]byte) TraceID

NewTraceID creates a TraceID from a byte slice.

func (TraceID) Bytes added in v0.16.0

func (tid TraceID) Bytes() [16]byte

Bytes returns the byte array representation of the TraceID.

func (TraceID) Equal added in v0.16.0

func (tid TraceID) Equal(that TraceID) bool

Equal returns true if ids are equal.

func (TraceID) HexString added in v0.16.0

func (tid TraceID) HexString() string

HexString returns hex representation of the ID.

func (TraceID) IsEmpty added in v0.19.0

func (tid TraceID) IsEmpty() bool

IsEmpty returns true if id contains at leas one non-zero byte.

func (TraceID) MarshalJSON added in v0.16.0

func (tid TraceID) MarshalJSON() ([]byte, error)

MarshalJSON converts trace id into a hex string enclosed in quotes.

func (*TraceID) MarshalTo added in v0.16.0

func (tid *TraceID) MarshalTo(data []byte) (n int, err error)

MarshalTo converts trace ID into a binary representation. Called by Protobuf serialization.

func (*TraceID) Size added in v0.16.0

func (tid *TraceID) Size() int

Size returns the size of the data to serialize.

func (*TraceID) Unmarshal added in v0.16.0

func (tid *TraceID) Unmarshal(data []byte) error

Unmarshal inflates this trace ID from binary representation. Called by Protobuf serialization.

func (*TraceID) UnmarshalJSON added in v0.16.0

func (tid *TraceID) UnmarshalJSON(data []byte) error

UnmarshalJSON inflates trace id from hex string, possibly enclosed in quotes. Called by Protobuf JSON deserialization.

Directories

Path Synopsis
protogen

Jump to

Keyboard shortcuts

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