package v1
Import Path
go.opentelemetry.io/proto/otlp/common/v1 (on go.dev)
Dependency Relation
imports 4 packages, and imported by 3 packages
Involved Source Files
common.pb.go
Package-Level Type Names (total 14)
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 assignable to Value:
*AnyValue_StringValue
*AnyValue_BoolValue
*AnyValue_IntValue
*AnyValue_DoubleValue
*AnyValue_ArrayValue
*AnyValue_KvlistValue
*AnyValue_BytesValue
*AnyValue_StringValueStrindex
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 : github.com/gogo/protobuf/proto.Message
*AnyValue : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*AnyValue : google.golang.org/protobuf/runtime/protoiface.MessageV1
func (*ArrayValue).GetValues() []*AnyValue
func (*KeyValue).GetValue() *AnyValue
func go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform.Value(v attribute.Value) *AnyValue
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: [Development]
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).
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 : github.com/gogo/protobuf/proto.Message
*ArrayValue : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*ArrayValue : google.golang.org/protobuf/runtime/protoiface.MessageV1
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]
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.
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 : github.com/gogo/protobuf/proto.Message
*EntityRef : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*EntityRef : google.golang.org/protobuf/runtime/protoiface.MessageV1
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.
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 : github.com/gogo/protobuf/proto.Message
*InstrumentationScope : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*InstrumentationScope : google.golang.org/protobuf/runtime/protoiface.MessageV1
func go.opentelemetry.io/proto/otlp/trace/v1.(*ScopeSpans).GetScope() *InstrumentationScope
func go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform.InstrumentationScope(il instrumentation.Scope) *InstrumentationScope
Represents a key-value pair that is used to store Span attributes, Link
attributes, etc.
The key name of the pair.
key_ref 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: [Development]
The value of the pair.
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 : github.com/gogo/protobuf/proto.Message
*KeyValue : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*KeyValue : google.golang.org/protobuf/runtime/protoiface.MessageV1
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.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform.Iterator(iter attribute.Iterator) []*KeyValue
func go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform.KeyValue(kv attribute.KeyValue) *KeyValue
func go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform.KeyValues(attrs []attribute.KeyValue) []*KeyValue
func go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform.ResourceAttributes(res *resource.Resource) []*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.
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 : github.com/gogo/protobuf/proto.Message
*KeyValueList : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*KeyValueList : google.golang.org/protobuf/runtime/protoiface.MessageV1
func (*AnyValue).GetKvlistValue() *KeyValueList
Package-Level Variables (only one)
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |