package v1
Import Path
go.opentelemetry.io/proto/otlp/common/v1 (on go.dev)
Dependency Relation
imports 5 packages, and imported by 3 packages
Involved Source Files
common.pb.go
Package-Level Type Names (total 15, in which 14 are exported)
Represents 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.
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
*AnyValue_StringValueStrindex
sizeCache protoimpl.SizeCache
state protoimpl.MessageState
unknownFields protoimpl.UnknownFields
Deprecated: Use AnyValue.ProtoReflect.Descriptor instead.
(*AnyValue) GetArrayValue() *ArrayValue
(*AnyValue) GetBoolValue() bool
(*AnyValue) GetBytesValue() []byte
(*AnyValue) GetDoubleValue() float64
(*AnyValue) GetIntValue() int64
(*AnyValue) GetKvlistValue() *KeyValueList
(*AnyValue) GetStringValue() string
(*AnyValue) GetStringValueStrindex() int32
(*AnyValue) GetValue() isAnyValue_Value
(*AnyValue) ProtoMessage()
(*AnyValue) ProtoReflect() protoreflect.Message
(*AnyValue) Reset()
(*AnyValue) String() string
*AnyValue : expvar.Var
*AnyValue : fmt.Stringer
*AnyValue : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*AnyValue : google.golang.org/protobuf/runtime/protoiface.MessageV1
*AnyValue : context.stringer
*AnyValue : google.golang.org/protobuf/internal/impl.messageV1
*AnyValue : os/signal.stringer
*AnyValue : runtime.stringer
func (*ArrayValue).GetValues() []*AnyValue
func (*KeyValue).GetValue() *AnyValue
ArrayValue *ArrayValue
(*AnyValue_ArrayValue) isAnyValue_Value()
*AnyValue_ArrayValue : isAnyValue_Value
BoolValue bool
(*AnyValue_BoolValue) isAnyValue_Value()
*AnyValue_BoolValue : isAnyValue_Value
BytesValue []byte
(*AnyValue_BytesValue) isAnyValue_Value()
*AnyValue_BytesValue : isAnyValue_Value
DoubleValue float64
(*AnyValue_DoubleValue) isAnyValue_Value()
*AnyValue_DoubleValue : isAnyValue_Value
IntValue int64
(*AnyValue_IntValue) isAnyValue_Value()
*AnyValue_IntValue : isAnyValue_Value
KvlistValue *KeyValueList
(*AnyValue_KvlistValue) isAnyValue_Value()
*AnyValue_KvlistValue : isAnyValue_Value
StringValue string
(*AnyValue_StringValue) isAnyValue_Value()
*AnyValue_StringValue : isAnyValue_Value
Reference to the string value in ProfilesDictionary.string_table.
Note: This is currently used exclusively in the Profiling signal.
Implementers of OTLP receivers for signals other than Profiling should
treat the presence of this value as a non-fatal issue.
Log an error or warning indicating an unexpected field intended for the
Profiling signal and process the data as if this value were absent or
empty, ignoring its semantic content for the non-Profiling signal.
Status: [Alpha]
[Since v1.10.0]
(*AnyValue_StringValueStrindex) isAnyValue_Value()
*AnyValue_StringValueStrindex : isAnyValue_Value
ArrayValue is a list of AnyValue messages. We need ArrayValue as a message
since oneof in AnyValue does not allow repeated fields.
Array of values. The array may be empty (contain 0 elements).
sizeCache protoimpl.SizeCache
state protoimpl.MessageState
unknownFields protoimpl.UnknownFields
Deprecated: Use ArrayValue.ProtoReflect.Descriptor instead.
(*ArrayValue) GetValues() []*AnyValue
(*ArrayValue) ProtoMessage()
(*ArrayValue) ProtoReflect() protoreflect.Message
(*ArrayValue) Reset()
(*ArrayValue) String() string
*ArrayValue : expvar.Var
*ArrayValue : fmt.Stringer
*ArrayValue : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*ArrayValue : google.golang.org/protobuf/runtime/protoiface.MessageV1
*ArrayValue : context.stringer
*ArrayValue : google.golang.org/protobuf/internal/impl.messageV1
*ArrayValue : os/signal.stringer
*ArrayValue : runtime.stringer
func (*AnyValue).GetArrayValue() *ArrayValue
A reference to an Entity.
Entity represents an object of interest associated with produced telemetry: e.g spans, metrics, profiles, or logs.
Status: [Development]
[Since v1.6.0]
Descriptive (non-identifying) attribute keys of the entity.
MAY change over the lifetime of the entity. MAY be empty.
These attribute keys are not part of entity's identity.
These keys MUST exist in the containing {message}.attributes.
Attribute Keys that identify the entity.
MUST not change during the lifetime of the entity. The Id must contain at least one attribute.
These keys MUST exist in the containing {message}.attributes.
The Schema URL, if known. This is the identifier of the Schema that the entity data
is recorded in. To learn more about Schema URL see
https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
This schema_url applies to the data in this message and to the Resource attributes
referenced by id_keys and description_keys.
TODO: discuss if we are happy with this somewhat complicated definition of what
the schema_url applies to.
This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs.
Defines the type of the entity. MUST not change during the lifetime of the entity.
For example: "service" or "host". This field is required and MUST not be empty
for valid entities.
sizeCache protoimpl.SizeCache
state protoimpl.MessageState
unknownFields protoimpl.UnknownFields
Deprecated: Use EntityRef.ProtoReflect.Descriptor instead.
(*EntityRef) GetDescriptionKeys() []string
(*EntityRef) GetIdKeys() []string
(*EntityRef) GetSchemaUrl() string
(*EntityRef) GetType() string
(*EntityRef) ProtoMessage()
(*EntityRef) ProtoReflect() protoreflect.Message
(*EntityRef) Reset()
(*EntityRef) String() string
*EntityRef : expvar.Var
*EntityRef : fmt.Stringer
*EntityRef : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*EntityRef : google.golang.org/protobuf/runtime/protoiface.MessageV1
*EntityRef : context.stringer
*EntityRef : google.golang.org/protobuf/internal/impl.messageV1
*EntityRef : os/signal.stringer
*EntityRef : runtime.stringer
func go.opentelemetry.io/proto/otlp/resource/v1.(*Resource).GetEntityRefs() []*EntityRef
InstrumentationScope is a message representing the instrumentation scope information
such as the fully qualified name and version.
Additional attributes that describe the scope. [Optional].
Attribute keys MUST be unique (it is not allowed to have more than one
attribute with the same key).
The behavior of software that receives duplicated keys can be unpredictable.
The number of attributes that were discarded. Attributes
can be discarded because their keys are too long or because there are too many
attributes. If this value is 0, then no attributes were dropped.
A name denoting the Instrumentation scope.
An empty instrumentation scope name means the name is unknown.
Defines the version of the instrumentation scope.
An empty instrumentation scope version means the version is unknown.
sizeCache protoimpl.SizeCache
state protoimpl.MessageState
unknownFields protoimpl.UnknownFields
Deprecated: Use InstrumentationScope.ProtoReflect.Descriptor instead.
(*InstrumentationScope) GetAttributes() []*KeyValue
(*InstrumentationScope) GetDroppedAttributesCount() uint32
(*InstrumentationScope) GetName() string
(*InstrumentationScope) GetVersion() string
(*InstrumentationScope) ProtoMessage()
(*InstrumentationScope) ProtoReflect() protoreflect.Message
(*InstrumentationScope) Reset()
(*InstrumentationScope) String() string
*InstrumentationScope : expvar.Var
*InstrumentationScope : fmt.Stringer
*InstrumentationScope : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*InstrumentationScope : google.golang.org/protobuf/runtime/protoiface.MessageV1
*InstrumentationScope : context.stringer
*InstrumentationScope : google.golang.org/protobuf/internal/impl.messageV1
*InstrumentationScope : os/signal.stringer
*InstrumentationScope : runtime.stringer
func go.opentelemetry.io/proto/otlp/trace/v1.(*ScopeSpans).GetScope() *InstrumentationScope
Represents a key-value pair that is used to store Span attributes, Link
attributes, etc.
The key name of the pair.
key_strindex MUST NOT be set if key is used.
Reference to the string key in ProfilesDictionary.string_table.
key MUST NOT be set if key_strindex is used.
Note: This is currently used exclusively in the Profiling signal.
Implementers of OTLP receivers for signals other than Profiling should
treat the presence of this key as a non-fatal issue.
Log an error or warning indicating an unexpected field intended for the
Profiling signal and process the data as if this value were absent or
empty, ignoring its semantic content for the non-Profiling signal.
Status: [Alpha]
[Since v1.10.0]
The value of the pair.
sizeCache protoimpl.SizeCache
state protoimpl.MessageState
unknownFields protoimpl.UnknownFields
Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.
(*KeyValue) GetKey() string
(*KeyValue) GetKeyStrindex() int32
(*KeyValue) GetValue() *AnyValue
(*KeyValue) ProtoMessage()
(*KeyValue) ProtoReflect() protoreflect.Message
(*KeyValue) Reset()
(*KeyValue) String() string
*KeyValue : expvar.Var
*KeyValue : fmt.Stringer
*KeyValue : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*KeyValue : google.golang.org/protobuf/runtime/protoiface.MessageV1
*KeyValue : context.stringer
*KeyValue : google.golang.org/protobuf/internal/impl.messageV1
*KeyValue : os/signal.stringer
*KeyValue : runtime.stringer
func (*InstrumentationScope).GetAttributes() []*KeyValue
func (*KeyValueList).GetValues() []*KeyValue
func go.opentelemetry.io/proto/otlp/resource/v1.(*Resource).GetAttributes() []*KeyValue
func go.opentelemetry.io/proto/otlp/trace/v1.(*Span).GetAttributes() []*KeyValue
func go.opentelemetry.io/proto/otlp/trace/v1.(*Span_Event).GetAttributes() []*KeyValue
func go.opentelemetry.io/proto/otlp/trace/v1.(*Span_Link).GetAttributes() []*KeyValue
func go.pact.im/x/traces/otlptraces.encodeAttrs(attrs []traces.Attr) []*KeyValue
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.
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).
The behavior of software that receives duplicated keys can be unpredictable.
sizeCache protoimpl.SizeCache
state protoimpl.MessageState
unknownFields protoimpl.UnknownFields
Deprecated: Use KeyValueList.ProtoReflect.Descriptor instead.
(*KeyValueList) GetValues() []*KeyValue
(*KeyValueList) ProtoMessage()
(*KeyValueList) ProtoReflect() protoreflect.Message
(*KeyValueList) Reset()
(*KeyValueList) String() string
*KeyValueList : expvar.Var
*KeyValueList : fmt.Stringer
*KeyValueList : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*KeyValueList : google.golang.org/protobuf/runtime/protoiface.MessageV1
*KeyValueList : context.stringer
*KeyValueList : google.golang.org/protobuf/internal/impl.messageV1
*KeyValueList : os/signal.stringer
*KeyValueList : runtime.stringer
func (*AnyValue).GetKvlistValue() *KeyValueList
Package-Level Functions (total 3, none are exported)
Package-Level Variables (total 6, in which 1 is exported)
Package-Level Constants (only one, which is unexported)
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)