Documentation ¶
Index ¶
- Variables
- type AnyValue
- func (*AnyValue) Descriptor() ([]byte, []int)deprecated
- func (x *AnyValue) GetArrayValue() *ArrayValue
- func (x *AnyValue) GetBoolValue() bool
- func (x *AnyValue) GetDoubleValue() float64
- func (x *AnyValue) GetIntValue() int64
- func (x *AnyValue) GetKvlistValue() *KeyValueList
- func (x *AnyValue) GetStringValue() string
- func (m *AnyValue) GetValue() isAnyValue_Value
- func (*AnyValue) ProtoMessage()
- func (x *AnyValue) ProtoReflect() protoreflect.Message
- func (x *AnyValue) Reset()
- func (x *AnyValue) String() string
- type AnyValue_ArrayValue
- type AnyValue_BoolValue
- type AnyValue_DoubleValue
- type AnyValue_IntValue
- type AnyValue_KvlistValue
- type AnyValue_StringValue
- type ArrayValue
- type InstrumentationLibrary
- func (*InstrumentationLibrary) Descriptor() ([]byte, []int)deprecated
- func (x *InstrumentationLibrary) GetName() string
- func (x *InstrumentationLibrary) GetVersion() string
- func (*InstrumentationLibrary) ProtoMessage()
- func (x *InstrumentationLibrary) ProtoReflect() protoreflect.Message
- func (x *InstrumentationLibrary) Reset()
- func (x *InstrumentationLibrary) String() string
- type KeyValue
- type KeyValueList
- type StringKeyValue
- func (*StringKeyValue) Descriptor() ([]byte, []int)deprecated
- func (x *StringKeyValue) GetKey() string
- func (x *StringKeyValue) GetValue() string
- func (*StringKeyValue) ProtoMessage()
- func (x *StringKeyValue) ProtoReflect() protoreflect.Message
- func (x *StringKeyValue) Reset()
- func (x *StringKeyValue) String() string
Constants ¶
This section is empty.
Variables ¶
var File_opentelemetry_proto_common_v1_common_proto protoreflect.FileDescriptor
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 "null". // // Types that are assignable to Value: // *AnyValue_StringValue // *AnyValue_BoolValue // *AnyValue_IntValue // *AnyValue_DoubleValue // *AnyValue_ArrayValue // *AnyValue_KvlistValue Value isAnyValue_Value `protobuf_oneof:"value"` // 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) Descriptor
deprecated
func (*AnyValue) GetArrayValue ¶
func (x *AnyValue) GetArrayValue() *ArrayValue
func (*AnyValue) GetBoolValue ¶
func (*AnyValue) GetDoubleValue ¶
func (*AnyValue) GetIntValue ¶
func (*AnyValue) GetKvlistValue ¶
func (x *AnyValue) GetKvlistValue() *KeyValueList
func (*AnyValue) GetStringValue ¶
func (*AnyValue) ProtoMessage ¶
func (*AnyValue) ProtoMessage()
func (*AnyValue) ProtoReflect ¶
func (x *AnyValue) ProtoReflect() protoreflect.Message
type AnyValue_ArrayValue ¶
type AnyValue_ArrayValue struct {
ArrayValue *ArrayValue `protobuf:"bytes,5,opt,name=array_value,json=arrayValue,proto3,oneof"`
}
type AnyValue_BoolValue ¶
type AnyValue_BoolValue struct {
BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
type AnyValue_DoubleValue ¶
type AnyValue_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type AnyValue_IntValue ¶
type AnyValue_IntValue struct {
IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
}
type AnyValue_KvlistValue ¶
type AnyValue_KvlistValue struct {
KvlistValue *KeyValueList `protobuf:"bytes,6,opt,name=kvlist_value,json=kvlistValue,proto3,oneof"`
}
type AnyValue_StringValue ¶
type AnyValue_StringValue struct {
StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}
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"` // 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) Descriptor
deprecated
func (*ArrayValue) Descriptor() ([]byte, []int)
Deprecated: Use ArrayValue.ProtoReflect.Descriptor instead.
func (*ArrayValue) GetValues ¶
func (x *ArrayValue) GetValues() []*AnyValue
func (*ArrayValue) ProtoMessage ¶
func (*ArrayValue) ProtoMessage()
func (*ArrayValue) ProtoReflect ¶
func (x *ArrayValue) ProtoReflect() protoreflect.Message
func (*ArrayValue) Reset ¶
func (x *ArrayValue) Reset()
func (*ArrayValue) String ¶
func (x *ArrayValue) String() string
type InstrumentationLibrary ¶
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"` // contains filtered or unexported fields }
InstrumentationLibrary is a message representing the instrumentation library information such as the fully qualified name and version.
func (*InstrumentationLibrary) Descriptor
deprecated
func (*InstrumentationLibrary) Descriptor() ([]byte, []int)
Deprecated: Use InstrumentationLibrary.ProtoReflect.Descriptor instead.
func (*InstrumentationLibrary) GetName ¶
func (x *InstrumentationLibrary) GetName() string
func (*InstrumentationLibrary) GetVersion ¶
func (x *InstrumentationLibrary) GetVersion() string
func (*InstrumentationLibrary) ProtoMessage ¶
func (*InstrumentationLibrary) ProtoMessage()
func (*InstrumentationLibrary) ProtoReflect ¶
func (x *InstrumentationLibrary) ProtoReflect() protoreflect.Message
func (*InstrumentationLibrary) Reset ¶
func (x *InstrumentationLibrary) Reset()
func (*InstrumentationLibrary) String ¶
func (x *InstrumentationLibrary) String() string
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"` // contains filtered or unexported fields }
KeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc.
func (*KeyValue) Descriptor
deprecated
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) ProtoReflect ¶
func (x *KeyValue) ProtoReflect() protoreflect.Message
type KeyValueList ¶
type KeyValueList struct { // A collection of key/value pairs of key-value pairs. The list may be empty (may // contain 0 elements). Values []*KeyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // 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) Descriptor
deprecated
func (*KeyValueList) Descriptor() ([]byte, []int)
Deprecated: Use KeyValueList.ProtoReflect.Descriptor instead.
func (*KeyValueList) GetValues ¶
func (x *KeyValueList) GetValues() []*KeyValue
func (*KeyValueList) ProtoMessage ¶
func (*KeyValueList) ProtoMessage()
func (*KeyValueList) ProtoReflect ¶
func (x *KeyValueList) ProtoReflect() protoreflect.Message
func (*KeyValueList) Reset ¶
func (x *KeyValueList) Reset()
func (*KeyValueList) String ¶
func (x *KeyValueList) String() string
type StringKeyValue ¶
type StringKeyValue struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
StringKeyValue is a pair of key/value strings. This is the simpler (and faster) version of KeyValue that only supports string values.
func (*StringKeyValue) Descriptor
deprecated
func (*StringKeyValue) Descriptor() ([]byte, []int)
Deprecated: Use StringKeyValue.ProtoReflect.Descriptor instead.
func (*StringKeyValue) GetKey ¶
func (x *StringKeyValue) GetKey() string
func (*StringKeyValue) GetValue ¶
func (x *StringKeyValue) GetValue() string
func (*StringKeyValue) ProtoMessage ¶
func (*StringKeyValue) ProtoMessage()
func (*StringKeyValue) ProtoReflect ¶
func (x *StringKeyValue) ProtoReflect() protoreflect.Message
func (*StringKeyValue) Reset ¶
func (x *StringKeyValue) Reset()
func (*StringKeyValue) String ¶
func (x *StringKeyValue) String() string