v1

package
v1.83.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCommon        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommon          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCommon = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type AnyValue

type AnyValue struct {
	// The value is one of the listed fields. It is valid for all values to be unspecified
	// in which case this AnyValue is considered to be "empty".
	//
	// Types that are valid to be assigned to Value:
	//	*AnyValue_StringValue
	//	*AnyValue_BoolValue
	//	*AnyValue_IntValue
	//	*AnyValue_DoubleValue
	//	*AnyValue_ArrayValue
	//	*AnyValue_KvlistValue
	//	*AnyValue_BytesValue
	Value isAnyValue_Value `protobuf_oneof:"value"`
}

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) Descriptor

func (*AnyValue) Descriptor() ([]byte, []int)

func (*AnyValue) GetArrayValue

func (m *AnyValue) GetArrayValue() *ArrayValue

func (*AnyValue) GetBoolValue

func (m *AnyValue) GetBoolValue() bool

func (*AnyValue) GetBytesValue

func (m *AnyValue) GetBytesValue() []byte

func (*AnyValue) GetDoubleValue

func (m *AnyValue) GetDoubleValue() float64

func (*AnyValue) GetIntValue

func (m *AnyValue) GetIntValue() int64

func (*AnyValue) GetKvlistValue

func (m *AnyValue) GetKvlistValue() *KeyValueList

func (*AnyValue) GetStringValue

func (m *AnyValue) GetStringValue() string

func (*AnyValue) GetValue

func (m *AnyValue) GetValue() isAnyValue_Value

func (*AnyValue) Marshal

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

func (*AnyValue) MarshalTo

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

func (*AnyValue) MarshalToSizedBuffer

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

func (*AnyValue) ProtoMessage

func (*AnyValue) ProtoMessage()

func (*AnyValue) Reset

func (m *AnyValue) Reset()

func (*AnyValue) Size

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

func (*AnyValue) String

func (m *AnyValue) String() string

func (*AnyValue) Unmarshal

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

func (*AnyValue) XXX_DiscardUnknown

func (m *AnyValue) XXX_DiscardUnknown()

func (*AnyValue) XXX_Marshal

func (m *AnyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnyValue) XXX_Merge

func (m *AnyValue) XXX_Merge(src proto.Message)

func (*AnyValue) XXX_OneofWrappers

func (*AnyValue) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*AnyValue) XXX_Size

func (m *AnyValue) XXX_Size() int

func (*AnyValue) XXX_Unmarshal

func (m *AnyValue) XXX_Unmarshal(b []byte) error

type AnyValue_ArrayValue

type AnyValue_ArrayValue struct {
	ArrayValue *ArrayValue `protobuf:"bytes,5,opt,name=array_value,json=arrayValue,proto3,oneof" json:"array_value,omitempty"`
}

func (*AnyValue_ArrayValue) MarshalTo

func (m *AnyValue_ArrayValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_ArrayValue) MarshalToSizedBuffer

func (m *AnyValue_ArrayValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_ArrayValue) Size

func (m *AnyValue_ArrayValue) Size() (n int)

type AnyValue_BoolValue

type AnyValue_BoolValue struct {
	BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty"`
}

func (*AnyValue_BoolValue) MarshalTo

func (m *AnyValue_BoolValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_BoolValue) MarshalToSizedBuffer

func (m *AnyValue_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_BoolValue) Size

func (m *AnyValue_BoolValue) Size() (n int)

type AnyValue_BytesValue

type AnyValue_BytesValue struct {
	BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof" json:"bytes_value,omitempty"`
}

func (*AnyValue_BytesValue) MarshalTo

func (m *AnyValue_BytesValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_BytesValue) MarshalToSizedBuffer

func (m *AnyValue_BytesValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_BytesValue) Size

func (m *AnyValue_BytesValue) Size() (n int)

type AnyValue_DoubleValue

type AnyValue_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof" json:"double_value,omitempty"`
}

func (*AnyValue_DoubleValue) MarshalTo

func (m *AnyValue_DoubleValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_DoubleValue) MarshalToSizedBuffer

func (m *AnyValue_DoubleValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_DoubleValue) Size

func (m *AnyValue_DoubleValue) Size() (n int)

type AnyValue_IntValue

type AnyValue_IntValue struct {
	IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof" json:"int_value,omitempty"`
}

func (*AnyValue_IntValue) MarshalTo

func (m *AnyValue_IntValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_IntValue) MarshalToSizedBuffer

func (m *AnyValue_IntValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_IntValue) Size

func (m *AnyValue_IntValue) Size() (n int)

type AnyValue_KvlistValue

type AnyValue_KvlistValue struct {
	KvlistValue *KeyValueList `protobuf:"bytes,6,opt,name=kvlist_value,json=kvlistValue,proto3,oneof" json:"kvlist_value,omitempty"`
}

func (*AnyValue_KvlistValue) MarshalTo

func (m *AnyValue_KvlistValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_KvlistValue) MarshalToSizedBuffer

func (m *AnyValue_KvlistValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_KvlistValue) Size

func (m *AnyValue_KvlistValue) Size() (n int)

type AnyValue_StringValue

type AnyValue_StringValue struct {
	StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"`
}

func (*AnyValue_StringValue) MarshalTo

func (m *AnyValue_StringValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_StringValue) MarshalToSizedBuffer

func (m *AnyValue_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_StringValue) Size

func (m *AnyValue_StringValue) Size() (n int)

type ArrayValue

type ArrayValue struct {
	// Array of values. The array may be empty (contain 0 elements).
	Values []*AnyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
}

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

func (*ArrayValue) Descriptor

func (*ArrayValue) Descriptor() ([]byte, []int)

func (*ArrayValue) GetValues

func (m *ArrayValue) GetValues() []*AnyValue

func (*ArrayValue) Marshal

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

func (*ArrayValue) MarshalTo

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

func (*ArrayValue) MarshalToSizedBuffer

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

func (*ArrayValue) ProtoMessage

func (*ArrayValue) ProtoMessage()

func (*ArrayValue) Reset

func (m *ArrayValue) Reset()

func (*ArrayValue) Size

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

func (*ArrayValue) String

func (m *ArrayValue) String() string

func (*ArrayValue) Unmarshal

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

func (*ArrayValue) XXX_DiscardUnknown

func (m *ArrayValue) XXX_DiscardUnknown()

func (*ArrayValue) XXX_Marshal

func (m *ArrayValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArrayValue) XXX_Merge

func (m *ArrayValue) XXX_Merge(src proto.Message)

func (*ArrayValue) XXX_Size

func (m *ArrayValue) XXX_Size() int

func (*ArrayValue) XXX_Unmarshal

func (m *ArrayValue) XXX_Unmarshal(b []byte) error

type InstrumentationLibrary deprecated

type InstrumentationLibrary struct {
	// An empty instrumentation library name means the name is unknown.
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
}

InstrumentationLibrary is a message representing the instrumentation library information such as the fully qualified name and version. InstrumentationLibrary is wire-compatible with InstrumentationScope for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022.

Deprecated: Do not use.

func (*InstrumentationLibrary) Descriptor

func (*InstrumentationLibrary) Descriptor() ([]byte, []int)

func (*InstrumentationLibrary) GetName

func (m *InstrumentationLibrary) GetName() string

func (*InstrumentationLibrary) GetVersion

func (m *InstrumentationLibrary) GetVersion() string

func (*InstrumentationLibrary) Marshal

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

func (*InstrumentationLibrary) MarshalTo

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

func (*InstrumentationLibrary) MarshalToSizedBuffer

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

func (*InstrumentationLibrary) ProtoMessage

func (*InstrumentationLibrary) ProtoMessage()

func (*InstrumentationLibrary) Reset

func (m *InstrumentationLibrary) Reset()

func (*InstrumentationLibrary) Size

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

func (*InstrumentationLibrary) String

func (m *InstrumentationLibrary) String() string

func (*InstrumentationLibrary) Unmarshal

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

func (*InstrumentationLibrary) XXX_DiscardUnknown

func (m *InstrumentationLibrary) XXX_DiscardUnknown()

func (*InstrumentationLibrary) XXX_Marshal

func (m *InstrumentationLibrary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstrumentationLibrary) XXX_Merge

func (m *InstrumentationLibrary) XXX_Merge(src proto.Message)

func (*InstrumentationLibrary) XXX_Size

func (m *InstrumentationLibrary) XXX_Size() int

func (*InstrumentationLibrary) XXX_Unmarshal

func (m *InstrumentationLibrary) XXX_Unmarshal(b []byte) error

type InstrumentationScope

type InstrumentationScope struct {
	// An empty instrumentation scope name means the name is unknown.
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
}

InstrumentationScope is a message representing the instrumentation scope information such as the fully qualified name and version.

func (*InstrumentationScope) Descriptor

func (*InstrumentationScope) Descriptor() ([]byte, []int)

func (*InstrumentationScope) GetName

func (m *InstrumentationScope) GetName() string

func (*InstrumentationScope) GetVersion

func (m *InstrumentationScope) GetVersion() string

func (*InstrumentationScope) Marshal

func (m *InstrumentationScope) Marshal() (dAtA []byte, err error)

func (*InstrumentationScope) MarshalTo

func (m *InstrumentationScope) MarshalTo(dAtA []byte) (int, error)

func (*InstrumentationScope) MarshalToSizedBuffer

func (m *InstrumentationScope) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InstrumentationScope) ProtoMessage

func (*InstrumentationScope) ProtoMessage()

func (*InstrumentationScope) Reset

func (m *InstrumentationScope) Reset()

func (*InstrumentationScope) Size

func (m *InstrumentationScope) Size() (n int)

func (*InstrumentationScope) String

func (m *InstrumentationScope) String() string

func (*InstrumentationScope) Unmarshal

func (m *InstrumentationScope) Unmarshal(dAtA []byte) error

func (*InstrumentationScope) XXX_DiscardUnknown

func (m *InstrumentationScope) XXX_DiscardUnknown()

func (*InstrumentationScope) XXX_Marshal

func (m *InstrumentationScope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstrumentationScope) XXX_Merge

func (m *InstrumentationScope) XXX_Merge(src proto.Message)

func (*InstrumentationScope) XXX_Size

func (m *InstrumentationScope) XXX_Size() int

func (*InstrumentationScope) XXX_Unmarshal

func (m *InstrumentationScope) XXX_Unmarshal(b []byte) error

type KeyValue

type KeyValue struct {
	Key   string    `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *AnyValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

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

func (*KeyValue) Descriptor

func (*KeyValue) Descriptor() ([]byte, []int)

func (*KeyValue) GetKey

func (m *KeyValue) GetKey() string

func (*KeyValue) GetValue

func (m *KeyValue) GetValue() *AnyValue

func (*KeyValue) Marshal

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

func (*KeyValue) MarshalTo

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

func (*KeyValue) MarshalToSizedBuffer

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

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) Reset

func (m *KeyValue) Reset()

func (*KeyValue) Size

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

func (*KeyValue) String

func (m *KeyValue) String() string

func (*KeyValue) Unmarshal

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

func (*KeyValue) XXX_DiscardUnknown

func (m *KeyValue) XXX_DiscardUnknown()

func (*KeyValue) XXX_Marshal

func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyValue) XXX_Merge

func (m *KeyValue) XXX_Merge(src proto.Message)

func (*KeyValue) XXX_Size

func (m *KeyValue) XXX_Size() int

func (*KeyValue) XXX_Unmarshal

func (m *KeyValue) XXX_Unmarshal(b []byte) error

type KeyValueList

type KeyValueList struct {
	// A collection of key/value pairs of key-value pairs. The list may be empty (may
	// contain 0 elements).
	// The keys MUST be unique (it is not allowed to have more than one
	// value with the same key).
	Values []*KeyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
}

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) Descriptor

func (*KeyValueList) Descriptor() ([]byte, []int)

func (*KeyValueList) GetValues

func (m *KeyValueList) GetValues() []*KeyValue

func (*KeyValueList) Marshal

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

func (*KeyValueList) MarshalTo

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

func (*KeyValueList) MarshalToSizedBuffer

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

func (*KeyValueList) ProtoMessage

func (*KeyValueList) ProtoMessage()

func (*KeyValueList) Reset

func (m *KeyValueList) Reset()

func (*KeyValueList) Size

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

func (*KeyValueList) String

func (m *KeyValueList) String() string

func (*KeyValueList) Unmarshal

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

func (*KeyValueList) XXX_DiscardUnknown

func (m *KeyValueList) XXX_DiscardUnknown()

func (*KeyValueList) XXX_Marshal

func (m *KeyValueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyValueList) XXX_Merge

func (m *KeyValueList) XXX_Merge(src proto.Message)

func (*KeyValueList) XXX_Size

func (m *KeyValueList) XXX_Size() int

func (*KeyValueList) XXX_Unmarshal

func (m *KeyValueList) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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