common

package
v0.0.0-...-ac63903 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type AnyValue

type AnyValue struct {
	// contains filtered or unexported fields
}

AnyValue is used to represent any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and primitives.

func (*AnyValue) MarshalToSizedBufferVT

func (m *AnyValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AnyValue) MarshalToVT

func (m *AnyValue) MarshalToVT(dAtA []byte) (int, error)

func (*AnyValue) MarshalVT

func (m *AnyValue) MarshalVT() (dAtA []byte, err error)

func (*AnyValue) SizeVT

func (m *AnyValue) SizeVT() (n int)

func (*AnyValue) UnmarshalVT

func (m *AnyValue) UnmarshalVT(dAtA []byte) error

type ArrayValue

type ArrayValue struct {
	// contains filtered or unexported fields
}

ArrayValue is a list of AnyValue messages. We need ArrayValue as a message since oneof in AnyValue does not allow repeated fields.

func (*ArrayValue) MarshalToSizedBufferVT

func (m *ArrayValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ArrayValue) MarshalToVT

func (m *ArrayValue) MarshalToVT(dAtA []byte) (int, error)

func (*ArrayValue) MarshalVT

func (m *ArrayValue) MarshalVT() (dAtA []byte, err error)

func (*ArrayValue) SizeVT

func (m *ArrayValue) SizeVT() (n int)

func (*ArrayValue) UnmarshalVT

func (m *ArrayValue) UnmarshalVT(dAtA []byte) error

type InstrumentationLibrary

type InstrumentationLibrary struct {
	// contains filtered or unexported fields
}

InstrumentationLibrary is a message representing the instrumentation library information such as the fully qualified name and version.

func (*InstrumentationLibrary) MarshalToSizedBufferVT

func (m *InstrumentationLibrary) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*InstrumentationLibrary) MarshalToVT

func (m *InstrumentationLibrary) MarshalToVT(dAtA []byte) (int, error)

func (*InstrumentationLibrary) MarshalVT

func (m *InstrumentationLibrary) MarshalVT() (dAtA []byte, err error)

func (*InstrumentationLibrary) SizeVT

func (m *InstrumentationLibrary) SizeVT() (n int)

func (*InstrumentationLibrary) UnmarshalVT

func (m *InstrumentationLibrary) UnmarshalVT(dAtA []byte) error

type KeyValue

type KeyValue struct {
	// contains filtered or unexported fields
}

KeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc.

func (*KeyValue) MarshalToSizedBufferVT

func (m *KeyValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*KeyValue) MarshalToVT

func (m *KeyValue) MarshalToVT(dAtA []byte) (int, error)

func (*KeyValue) MarshalVT

func (m *KeyValue) MarshalVT() (dAtA []byte, err error)

func (*KeyValue) SizeVT

func (m *KeyValue) SizeVT() (n int)

func (*KeyValue) UnmarshalVT

func (m *KeyValue) UnmarshalVT(dAtA []byte) error

type KeyValueList

type KeyValueList struct {
	// contains filtered or unexported fields
}

KeyValueList is a list of KeyValue messages. We need KeyValueList as a message since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches are semantically equivalent.

func (*KeyValueList) MarshalToSizedBufferVT

func (m *KeyValueList) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*KeyValueList) MarshalToVT

func (m *KeyValueList) MarshalToVT(dAtA []byte) (int, error)

func (*KeyValueList) MarshalVT

func (m *KeyValueList) MarshalVT() (dAtA []byte, err error)

func (*KeyValueList) SizeVT

func (m *KeyValueList) SizeVT() (n int)

func (*KeyValueList) UnmarshalVT

func (m *KeyValueList) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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