// Copyright 2019, OpenTelemetry Authors//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of the License at//// http://www.apache.org/licenses/LICENSE-2.0//// Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an "AS IS" BASIS,// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.// See the License for the specific language governing permissions and// limitations under the License.// Code generated by protoc-gen-go. DO NOT EDIT.// versions:// protoc-gen-go v1.36.11// protoc v7.35.0// source: opentelemetry/proto/trace/v1/trace.protopackage v1import (v11v1protoreflectprotoimplreflectsyncunsafe)const (// Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)// Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))// SpanFlags represents constants used to interpret the// Span.flags field, which is protobuf 'fixed32' type and is to// be used as bit-fields. Each non-zero value defined in this enum is// a bit-mask. To extract the bit-field, for example, use an// expression like://// (span.flags & SPAN_FLAGS_TRACE_FLAGS_MASK)//// See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.//// Note that Span flags were introduced in version 1.1 of the// OpenTelemetry protocol. Older Span producers do not set this// field, consequently consumers should not rely on the absence of a// particular flag bit to indicate the presence of a particular feature.//// [Since v1.1.0]typeSpanFlagsint32const (// The zero value for the enum. Should not be used for comparisons. // Instead use bitwise "and" with the appropriate mask as shown above.SpanFlags_SPAN_FLAGS_DO_NOT_USESpanFlags = 0// Bits 0-7 are used for trace flags.SpanFlags_SPAN_FLAGS_TRACE_FLAGS_MASKSpanFlags = 255// Bits 8 and 9 are used to indicate that the parent span or link span is remote. // Bit 8 (`HAS_IS_REMOTE`) indicates whether the value is known. // Bit 9 (`IS_REMOTE`) indicates whether the span or link is remote. // // [Since v1.2.0]SpanFlags_SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASKSpanFlags = 256// [Since v1.2.0]SpanFlags_SPAN_FLAGS_CONTEXT_IS_REMOTE_MASKSpanFlags = 512)// Enum value maps for SpanFlags.var (SpanFlags_name = map[int32]string{0: "SPAN_FLAGS_DO_NOT_USE",255: "SPAN_FLAGS_TRACE_FLAGS_MASK",256: "SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK",512: "SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK", }SpanFlags_value = map[string]int32{"SPAN_FLAGS_DO_NOT_USE": 0,"SPAN_FLAGS_TRACE_FLAGS_MASK": 255,"SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK": 256,"SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK": 512, })func ( SpanFlags) () *SpanFlags { := new(SpanFlags) * = return}func ( SpanFlags) () string {returnprotoimpl.X.EnumStringOf(.Descriptor(), protoreflect.EnumNumber())}func (SpanFlags) () protoreflect.EnumDescriptor {returnfile_opentelemetry_proto_trace_v1_trace_proto_enumTypes[0].Descriptor()}func (SpanFlags) () protoreflect.EnumType {return &file_opentelemetry_proto_trace_v1_trace_proto_enumTypes[0]}func ( SpanFlags) () protoreflect.EnumNumber {returnprotoreflect.EnumNumber()}// Deprecated: Use SpanFlags.Descriptor instead.func (SpanFlags) () ([]byte, []int) {returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{0}}// SpanKind is the type of span. Can be used to specify additional relationships between spans// in addition to a parent/child relationship.typeSpan_SpanKindint32const (// Unspecified. Do NOT use as default. // Implementations MAY assume SpanKind to be INTERNAL when receiving UNSPECIFIED.Span_SPAN_KIND_UNSPECIFIEDSpan_SpanKind = 0// Indicates that the span represents an internal operation within an application, // as opposed to an operation happening at the boundaries. Default value.Span_SPAN_KIND_INTERNALSpan_SpanKind = 1// Indicates that the span covers server-side handling of an RPC or other // remote network request.Span_SPAN_KIND_SERVERSpan_SpanKind = 2// Indicates that the span describes a request to some remote service.Span_SPAN_KIND_CLIENTSpan_SpanKind = 3// Indicates that the span describes a producer sending a message to a broker. // Unlike CLIENT and SERVER, there is often no direct critical path latency relationship // between producer and consumer spans. A PRODUCER span ends when the message was accepted // by the broker while the logical processing of the message might span a much longer time.Span_SPAN_KIND_PRODUCERSpan_SpanKind = 4// Indicates that the span describes consumer receiving a message from a broker. // Like the PRODUCER kind, there is often no direct critical path latency relationship // between producer and consumer spans.Span_SPAN_KIND_CONSUMERSpan_SpanKind = 5)// Enum value maps for Span_SpanKind.var (Span_SpanKind_name = map[int32]string{0: "SPAN_KIND_UNSPECIFIED",1: "SPAN_KIND_INTERNAL",2: "SPAN_KIND_SERVER",3: "SPAN_KIND_CLIENT",4: "SPAN_KIND_PRODUCER",5: "SPAN_KIND_CONSUMER", }Span_SpanKind_value = map[string]int32{"SPAN_KIND_UNSPECIFIED": 0,"SPAN_KIND_INTERNAL": 1,"SPAN_KIND_SERVER": 2,"SPAN_KIND_CLIENT": 3,"SPAN_KIND_PRODUCER": 4,"SPAN_KIND_CONSUMER": 5, })func ( Span_SpanKind) () *Span_SpanKind { := new(Span_SpanKind) * = return}func ( Span_SpanKind) () string {returnprotoimpl.X.EnumStringOf(.Descriptor(), protoreflect.EnumNumber())}func (Span_SpanKind) () protoreflect.EnumDescriptor {returnfile_opentelemetry_proto_trace_v1_trace_proto_enumTypes[1].Descriptor()}func (Span_SpanKind) () protoreflect.EnumType {return &file_opentelemetry_proto_trace_v1_trace_proto_enumTypes[1]}func ( Span_SpanKind) () protoreflect.EnumNumber {returnprotoreflect.EnumNumber()}// Deprecated: Use Span_SpanKind.Descriptor instead.func (Span_SpanKind) () ([]byte, []int) {returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{3, 0}}// For the semantics of status codes see// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-statustypeStatus_StatusCodeint32const (// The default status.Status_STATUS_CODE_UNSETStatus_StatusCode = 0// The Span has been validated by an Application developer or Operator to // have completed successfully.Status_STATUS_CODE_OKStatus_StatusCode = 1// The Span contains an error.Status_STATUS_CODE_ERRORStatus_StatusCode = 2)// Enum value maps for Status_StatusCode.var (Status_StatusCode_name = map[int32]string{0: "STATUS_CODE_UNSET",1: "STATUS_CODE_OK",2: "STATUS_CODE_ERROR", }Status_StatusCode_value = map[string]int32{"STATUS_CODE_UNSET": 0,"STATUS_CODE_OK": 1,"STATUS_CODE_ERROR": 2, })func ( Status_StatusCode) () *Status_StatusCode { := new(Status_StatusCode) * = return}func ( Status_StatusCode) () string {returnprotoimpl.X.EnumStringOf(.Descriptor(), protoreflect.EnumNumber())}func (Status_StatusCode) () protoreflect.EnumDescriptor {returnfile_opentelemetry_proto_trace_v1_trace_proto_enumTypes[2].Descriptor()}func (Status_StatusCode) () protoreflect.EnumType {return &file_opentelemetry_proto_trace_v1_trace_proto_enumTypes[2]}func ( Status_StatusCode) () protoreflect.EnumNumber {returnprotoreflect.EnumNumber()}// Deprecated: Use Status_StatusCode.Descriptor instead.func (Status_StatusCode) () ([]byte, []int) {returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{4, 0}}// TracesData represents the traces data that can be stored in a persistent storage,// OR can be embedded by other protocols that transfer OTLP traces data but do// not implement the OTLP protocol.//// The main difference between this message and collector protocol is that// in this message there will not be any "control" or "metadata" specific to// OTLP protocol.//// When new fields are added into this message, the OTLP request MUST be updated// as well.typeTracesDatastruct {stateprotoimpl.MessageState`protogen:"open.v1"`// An array of ResourceSpans. // For data coming from a single resource this array will typically contain // one element. Intermediary nodes that receive data from multiple origins // typically batch the data before forwarding further and in that case this // array will contain multiple elements.ResourceSpans []*ResourceSpans`protobuf:"bytes,1,rep,name=resource_spans,json=resourceSpans,proto3" json:"resource_spans,omitempty"`unknownFieldsprotoimpl.UnknownFieldssizeCacheprotoimpl.SizeCache}func ( *TracesData) () { * = TracesData{} := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[0] := protoimpl.X.MessageStateOf(protoimpl.Pointer()) .StoreMessageInfo()}func ( *TracesData) () string {returnprotoimpl.X.MessageStringOf()}func (*TracesData) () {}func ( *TracesData) () protoreflect.Message { := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[0]if != nil { := protoimpl.X.MessageStateOf(protoimpl.Pointer())if .LoadMessageInfo() == nil { .StoreMessageInfo() }return }return .MessageOf()}// Deprecated: Use TracesData.ProtoReflect.Descriptor instead.func (*TracesData) () ([]byte, []int) {returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{0}}func ( *TracesData) () []*ResourceSpans {if != nil {return .ResourceSpans }returnnil}// A collection of ScopeSpans from a Resource.typeResourceSpansstruct {stateprotoimpl.MessageState`protogen:"open.v1"`// The resource for the spans in this message. // If this field is not set then no resource info is known.Resource *v1.Resource`protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`// A list of ScopeSpans that originate from a resource.ScopeSpans []*ScopeSpans`protobuf:"bytes,2,rep,name=scope_spans,json=scopeSpans,proto3" json:"scope_spans,omitempty"`// The Schema URL, if known. This is the identifier of the Schema that the resource data // is recorded in. Notably, the last part of the URL path is the version number of the // schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see // https://opentelemetry.io/docs/specs/otel/schemas/#schema-url // This schema_url applies to the data in the "resource" field. It does not apply // to the data in the "scope_spans" field which have their own schema_url field.SchemaUrlstring`protobuf:"bytes,3,opt,name=schema_url,json=schemaUrl,proto3" json:"schema_url,omitempty"`unknownFieldsprotoimpl.UnknownFieldssizeCacheprotoimpl.SizeCache}func ( *ResourceSpans) () { * = ResourceSpans{} := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[1] := protoimpl.X.MessageStateOf(protoimpl.Pointer()) .StoreMessageInfo()}func ( *ResourceSpans) () string {returnprotoimpl.X.MessageStringOf()}func (*ResourceSpans) () {}func ( *ResourceSpans) () protoreflect.Message { := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[1]if != nil { := protoimpl.X.MessageStateOf(protoimpl.Pointer())if .LoadMessageInfo() == nil { .StoreMessageInfo() }return }return .MessageOf()}// Deprecated: Use ResourceSpans.ProtoReflect.Descriptor instead.func (*ResourceSpans) () ([]byte, []int) {returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{1}}func ( *ResourceSpans) () *v1.Resource {if != nil {return .Resource }returnnil}func ( *ResourceSpans) () []*ScopeSpans {if != nil {return .ScopeSpans }returnnil}func ( *ResourceSpans) () string {if != nil {return .SchemaUrl }return""}// A collection of Spans produced by an InstrumentationScope.typeScopeSpansstruct {stateprotoimpl.MessageState`protogen:"open.v1"`// The instrumentation scope information for the spans in this message. // Semantically when InstrumentationScope isn't set, it is equivalent with // an empty instrumentation scope name (unknown).Scope *v11.InstrumentationScope`protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`// A list of Spans that originate from an instrumentation scope.Spans []*Span`protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"`// The Schema URL, if known. This is the identifier of the Schema that the span data // is recorded in. Notably, the last part of the URL path is the version number of the // schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see // https://opentelemetry.io/docs/specs/otel/schemas/#schema-url // This schema_url applies to the data in the "scope" field and all spans and span // events in the "spans" field.SchemaUrlstring`protobuf:"bytes,3,opt,name=schema_url,json=schemaUrl,proto3" json:"schema_url,omitempty"`unknownFieldsprotoimpl.UnknownFieldssizeCacheprotoimpl.SizeCache}func ( *ScopeSpans) () { * = ScopeSpans{} := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[2] := protoimpl.X.MessageStateOf(protoimpl.Pointer()) .StoreMessageInfo()}func ( *ScopeSpans) () string {returnprotoimpl.X.MessageStringOf()}func (*ScopeSpans) () {}func ( *ScopeSpans) () protoreflect.Message { := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[2]if != nil { := protoimpl.X.MessageStateOf(protoimpl.Pointer())if .LoadMessageInfo() == nil { .StoreMessageInfo() }return }return .MessageOf()}// Deprecated: Use ScopeSpans.ProtoReflect.Descriptor instead.func (*ScopeSpans) () ([]byte, []int) {returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{2}}func ( *ScopeSpans) () *v11.InstrumentationScope {if != nil {return .Scope }returnnil}func ( *ScopeSpans) () []*Span {if != nil {return .Spans }returnnil}func ( *ScopeSpans) () string {if != nil {return .SchemaUrl }return""}// A Span represents a single operation performed by a single component of the system.//// The next available field id is 17.typeSpanstruct {stateprotoimpl.MessageState`protogen:"open.v1"`// A unique identifier for a trace. All spans from the same trace share // the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes OR // of length other than 16 bytes is considered invalid (empty string in OTLP/JSON // is zero-length and thus is also invalid). // // This field is required.TraceId []byte`protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`// A unique identifier for a span within a trace, assigned when the span // is created. The ID is an 8-byte array. An ID with all zeroes OR of length // other than 8 bytes is considered invalid (empty string in OTLP/JSON // is zero-length and thus is also invalid). // // This field is required.SpanId []byte`protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`// trace_state conveys information about request position in multiple distributed tracing graphs. // It is a trace_state in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header // See also https://github.com/w3c/distributed-tracing for more details about this field.TraceStatestring`protobuf:"bytes,3,opt,name=trace_state,json=traceState,proto3" json:"trace_state,omitempty"`// The `span_id` of this span's parent span. If this is a root span, then this // field must be empty. The ID is an 8-byte array.ParentSpanId []byte`protobuf:"bytes,4,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"`// Flags, a bit field. // // Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace // Context specification. To read the 8-bit W3C trace flag, use // `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`. // // See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions. // // Bits 8 and 9 represent the 3 states of whether a span's parent // is remote. The states are (unknown, is not remote, is remote). // To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`. // To read whether the span is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`. // // When creating span messages, if the message is logically forwarded from another source // with an equivalent flags fields (i.e., usually another OTLP span message), the field SHOULD // be copied as-is. If creating from a source that does not have an equivalent flags field // (such as a runtime representation of an OpenTelemetry span), the high 22 bits MUST // be set to zero. // Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero. // // [Optional]. // // [Since v1.1.0]Flagsuint32`protobuf:"fixed32,16,opt,name=flags,proto3" json:"flags,omitempty"`// A description of the span's operation. // // For example, the name can be a qualified method name or a file name // and a line number where the operation is called. A best practice is to use // the same display name at the same call point in an application. // This makes it easier to correlate spans in different traces. // // This field is semantically required to be set to non-empty string. // Empty value is equivalent to an unknown span name. // // This field is required.Namestring`protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`// Distinguishes between spans generated in a particular context. For example, // two spans with the same name may be distinguished using `CLIENT` (caller) // and `SERVER` (callee) to identify queueing latency associated with the span.KindSpan_SpanKind`protobuf:"varint,6,opt,name=kind,proto3,enum=opentelemetry.proto.trace.v1.Span_SpanKind" json:"kind,omitempty"`// The start time of the span. On the client side, this is the time // kept by the local machine where the span execution starts. On the server side, this // is the time when the server's application handler starts running. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // // This field is semantically required and it is expected that end_time >= start_time.StartTimeUnixNanouint64`protobuf:"fixed64,7,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`// The end time of the span. On the client side, this is the time // kept by the local machine where the span execution ends. On the server side, this // is the time when the server application handler stops running. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // // This field is semantically required and it is expected that end_time >= start_time.EndTimeUnixNanouint64`protobuf:"fixed64,8,opt,name=end_time_unix_nano,json=endTimeUnixNano,proto3" json:"end_time_unix_nano,omitempty"`// A collection of key/value pairs. Note, global attributes // like service name can be set using the resource API. Examples of attributes: // // "user_agent.original": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" // "http.response.status_code": 200 // "com.example.myattribute": true // "com.example.score": 10.239 // // 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.Attributes []*v11.KeyValue`protobuf:"bytes,9,rep,name=attributes,proto3" json:"attributes,omitempty"`// 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.DroppedAttributesCountuint32`protobuf:"varint,10,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`// A collection of Event items.Events []*Span_Event`protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"`// The number of dropped events. If the value is 0, then no // events were dropped.DroppedEventsCountuint32`protobuf:"varint,12,opt,name=dropped_events_count,json=droppedEventsCount,proto3" json:"dropped_events_count,omitempty"`// A collection of Links, which are references from this span to a span // in the same or different trace.Links []*Span_Link`protobuf:"bytes,13,rep,name=links,proto3" json:"links,omitempty"`// The number of dropped links after the maximum size was // enforced. If this value is 0, then no links were dropped.DroppedLinksCountuint32`protobuf:"varint,14,opt,name=dropped_links_count,json=droppedLinksCount,proto3" json:"dropped_links_count,omitempty"`// An optional final status for this span. Semantically when Status isn't set, it means // span's status code is unset, i.e. assume STATUS_CODE_UNSET (code = 0).Status *Status`protobuf:"bytes,15,opt,name=status,proto3" json:"status,omitempty"`unknownFieldsprotoimpl.UnknownFieldssizeCacheprotoimpl.SizeCache}func ( *Span) () { * = Span{} := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[3] := protoimpl.X.MessageStateOf(protoimpl.Pointer()) .StoreMessageInfo()}func ( *Span) () string {returnprotoimpl.X.MessageStringOf()}func (*Span) () {}func ( *Span) () protoreflect.Message { := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[3]if != nil { := protoimpl.X.MessageStateOf(protoimpl.Pointer())if .LoadMessageInfo() == nil { .StoreMessageInfo() }return }return .MessageOf()}// Deprecated: Use Span.ProtoReflect.Descriptor instead.func (*Span) () ([]byte, []int) {returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{3}}func ( *Span) () []byte {if != nil {return .TraceId }returnnil}func ( *Span) () []byte {if != nil {return .SpanId }returnnil}func ( *Span) () string {if != nil {return .TraceState }return""}func ( *Span) () []byte {if != nil {return .ParentSpanId }returnnil}func ( *Span) () uint32 {if != nil {return .Flags }return0}func ( *Span) () string {if != nil {return .Name }return""}func ( *Span) () Span_SpanKind {if != nil {return .Kind }returnSpan_SPAN_KIND_UNSPECIFIED}func ( *Span) () uint64 {if != nil {return .StartTimeUnixNano }return0}func ( *Span) () uint64 {if != nil {return .EndTimeUnixNano }return0}func ( *Span) () []*v11.KeyValue {if != nil {return .Attributes }returnnil}func ( *Span) () uint32 {if != nil {return .DroppedAttributesCount }return0}func ( *Span) () []*Span_Event {if != nil {return .Events }returnnil}func ( *Span) () uint32 {if != nil {return .DroppedEventsCount }return0}func ( *Span) () []*Span_Link {if != nil {return .Links }returnnil}func ( *Span) () uint32 {if != nil {return .DroppedLinksCount }return0}func ( *Span) () *Status {if != nil {return .Status }returnnil}// The Status type defines a logical error model that is suitable for different// programming environments, including REST APIs and RPC APIs.typeStatusstruct {stateprotoimpl.MessageState`protogen:"open.v1"`// A developer-facing human readable error message.Messagestring`protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`// The status code.CodeStatus_StatusCode`protobuf:"varint,3,opt,name=code,proto3,enum=opentelemetry.proto.trace.v1.Status_StatusCode" json:"code,omitempty"`unknownFieldsprotoimpl.UnknownFieldssizeCacheprotoimpl.SizeCache}func ( *Status) () { * = Status{} := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[4] := protoimpl.X.MessageStateOf(protoimpl.Pointer()) .StoreMessageInfo()}func ( *Status) () string {returnprotoimpl.X.MessageStringOf()}func (*Status) () {}func ( *Status) () protoreflect.Message { := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[4]if != nil { := protoimpl.X.MessageStateOf(protoimpl.Pointer())if .LoadMessageInfo() == nil { .StoreMessageInfo() }return }return .MessageOf()}// Deprecated: Use Status.ProtoReflect.Descriptor instead.func (*Status) () ([]byte, []int) {returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{4}}func ( *Status) () string {if != nil {return .Message }return""}func ( *Status) () Status_StatusCode {if != nil {return .Code }returnStatus_STATUS_CODE_UNSET}// Event is a time-stamped annotation of the span, consisting of user-supplied// text description and key-value pairs.typeSpan_Eventstruct {stateprotoimpl.MessageState`protogen:"open.v1"`// The time the event occurred.TimeUnixNanouint64`protobuf:"fixed64,1,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`// The name of the event. // This field is semantically required to be set to non-empty string.Namestring`protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`// A collection of attribute key/value pairs on the event. // 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.Attributes []*v11.KeyValue`protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"`// The number of dropped attributes. If the value is 0, // then no attributes were dropped.DroppedAttributesCountuint32`protobuf:"varint,4,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`unknownFieldsprotoimpl.UnknownFieldssizeCacheprotoimpl.SizeCache}func ( *Span_Event) () { * = Span_Event{} := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[5] := protoimpl.X.MessageStateOf(protoimpl.Pointer()) .StoreMessageInfo()}func ( *Span_Event) () string {returnprotoimpl.X.MessageStringOf()}func (*Span_Event) () {}func ( *Span_Event) () protoreflect.Message { := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[5]if != nil { := protoimpl.X.MessageStateOf(protoimpl.Pointer())if .LoadMessageInfo() == nil { .StoreMessageInfo() }return }return .MessageOf()}// Deprecated: Use Span_Event.ProtoReflect.Descriptor instead.func (*Span_Event) () ([]byte, []int) {returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{3, 0}}func ( *Span_Event) () uint64 {if != nil {return .TimeUnixNano }return0}func ( *Span_Event) () string {if != nil {return .Name }return""}func ( *Span_Event) () []*v11.KeyValue {if != nil {return .Attributes }returnnil}func ( *Span_Event) () uint32 {if != nil {return .DroppedAttributesCount }return0}// A pointer from the current span to another span in the same trace or in a// different trace. For example, this can be used in batching operations,// where a single batch handler processes multiple requests from different// traces or when the handler receives a request from a different project.typeSpan_Linkstruct {stateprotoimpl.MessageState`protogen:"open.v1"`// A unique identifier of a trace that this linked span is part of. The ID is a // 16-byte array.TraceId []byte`protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`// A unique identifier for the linked span. The ID is an 8-byte array.SpanId []byte`protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`// The trace_state associated with the link.TraceStatestring`protobuf:"bytes,3,opt,name=trace_state,json=traceState,proto3" json:"trace_state,omitempty"`// A collection of attribute key/value pairs on the link. // 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.Attributes []*v11.KeyValue`protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"`// The number of dropped attributes. If the value is 0, // then no attributes were dropped.DroppedAttributesCountuint32`protobuf:"varint,5,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`// Flags, a bit field. // // Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace // Context specification. To read the 8-bit W3C trace flag, use // `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`. // // See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions. // // Bits 8 and 9 represent the 3 states of whether the link is remote. // The states are (unknown, is not remote, is remote). // To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`. // To read whether the link is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`. // // Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero. // When creating new spans, bits 10-31 (most-significant 22-bits) MUST be zero. // // [Optional]. // // [Since v1.1.0]Flagsuint32`protobuf:"fixed32,6,opt,name=flags,proto3" json:"flags,omitempty"`unknownFieldsprotoimpl.UnknownFieldssizeCacheprotoimpl.SizeCache}func ( *Span_Link) () { * = Span_Link{} := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[6] := protoimpl.X.MessageStateOf(protoimpl.Pointer()) .StoreMessageInfo()}func ( *Span_Link) () string {returnprotoimpl.X.MessageStringOf()}func (*Span_Link) () {}func ( *Span_Link) () protoreflect.Message { := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[6]if != nil { := protoimpl.X.MessageStateOf(protoimpl.Pointer())if .LoadMessageInfo() == nil { .StoreMessageInfo() }return }return .MessageOf()}// Deprecated: Use Span_Link.ProtoReflect.Descriptor instead.func (*Span_Link) () ([]byte, []int) {returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{3, 1}}func ( *Span_Link) () []byte {if != nil {return .TraceId }returnnil}func ( *Span_Link) () []byte {if != nil {return .SpanId }returnnil}func ( *Span_Link) () string {if != nil {return .TraceState }return""}func ( *Span_Link) () []*v11.KeyValue {if != nil {return .Attributes }returnnil}func ( *Span_Link) () uint32 {if != nil {return .DroppedAttributesCount }return0}func ( *Span_Link) () uint32 {if != nil {return .Flags }return0}varFile_opentelemetry_proto_trace_v1_trace_protoprotoreflect.FileDescriptorconstfile_opentelemetry_proto_trace_v1_trace_proto_rawDesc = "" +"\n" +"(opentelemetry/proto/trace/v1/trace.proto\x12\x1copentelemetry.proto.trace.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"`\n" +"\n" +"TracesData\x12R\n" +"\x0eresource_spans\x18\x01 \x03(\v2+.opentelemetry.proto.trace.v1.ResourceSpansR\rresourceSpans\"\xc8\x01\n" +"\rResourceSpans\x12E\n" +"\bresource\x18\x01 \x01(\v2).opentelemetry.proto.resource.v1.ResourceR\bresource\x12I\n" +"\vscope_spans\x18\x02 \x03(\v2(.opentelemetry.proto.trace.v1.ScopeSpansR\n" +"scopeSpans\x12\x1d\n" +"\n" +"schema_url\x18\x03 \x01(\tR\tschemaUrlJ\x06\b\xe8\a\x10\xe9\a\"\xb0\x01\n" +"\n" +"ScopeSpans\x12I\n" +"\x05scope\x18\x01 \x01(\v23.opentelemetry.proto.common.v1.InstrumentationScopeR\x05scope\x128\n" +"\x05spans\x18\x02 \x03(\v2\".opentelemetry.proto.trace.v1.SpanR\x05spans\x12\x1d\n" +"\n" +"schema_url\x18\x03 \x01(\tR\tschemaUrl\"\xc8\n" +"\n" +"\x04Span\x12\x19\n" +"\btrace_id\x18\x01 \x01(\fR\atraceId\x12\x17\n" +"\aspan_id\x18\x02 \x01(\fR\x06spanId\x12\x1f\n" +"\vtrace_state\x18\x03 \x01(\tR\n" +"traceState\x12$\n" +"\x0eparent_span_id\x18\x04 \x01(\fR\fparentSpanId\x12\x14\n" +"\x05flags\x18\x10 \x01(\aR\x05flags\x12\x12\n" +"\x04name\x18\x05 \x01(\tR\x04name\x12?\n" +"\x04kind\x18\x06 \x01(\x0e2+.opentelemetry.proto.trace.v1.Span.SpanKindR\x04kind\x12/\n" +"\x14start_time_unix_nano\x18\a \x01(\x06R\x11startTimeUnixNano\x12+\n" +"\x12end_time_unix_nano\x18\b \x01(\x06R\x0fendTimeUnixNano\x12G\n" +"\n" +"attributes\x18\t \x03(\v2'.opentelemetry.proto.common.v1.KeyValueR\n" +"attributes\x128\n" +"\x18dropped_attributes_count\x18\n" +" \x01(\rR\x16droppedAttributesCount\x12@\n" +"\x06events\x18\v \x03(\v2(.opentelemetry.proto.trace.v1.Span.EventR\x06events\x120\n" +"\x14dropped_events_count\x18\f \x01(\rR\x12droppedEventsCount\x12=\n" +"\x05links\x18\r \x03(\v2'.opentelemetry.proto.trace.v1.Span.LinkR\x05links\x12.\n" +"\x13dropped_links_count\x18\x0e \x01(\rR\x11droppedLinksCount\x12<\n" +"\x06status\x18\x0f \x01(\v2$.opentelemetry.proto.trace.v1.StatusR\x06status\x1a\xc4\x01\n" +"\x05Event\x12$\n" +"\x0etime_unix_nano\x18\x01 \x01(\x06R\ftimeUnixNano\x12\x12\n" +"\x04name\x18\x02 \x01(\tR\x04name\x12G\n" +"\n" +"attributes\x18\x03 \x03(\v2'.opentelemetry.proto.common.v1.KeyValueR\n" +"attributes\x128\n" +"\x18dropped_attributes_count\x18\x04 \x01(\rR\x16droppedAttributesCount\x1a\xf4\x01\n" +"\x04Link\x12\x19\n" +"\btrace_id\x18\x01 \x01(\fR\atraceId\x12\x17\n" +"\aspan_id\x18\x02 \x01(\fR\x06spanId\x12\x1f\n" +"\vtrace_state\x18\x03 \x01(\tR\n" +"traceState\x12G\n" +"\n" +"attributes\x18\x04 \x03(\v2'.opentelemetry.proto.common.v1.KeyValueR\n" +"attributes\x128\n" +"\x18dropped_attributes_count\x18\x05 \x01(\rR\x16droppedAttributesCount\x12\x14\n" +"\x05flags\x18\x06 \x01(\aR\x05flags\"\x99\x01\n" +"\bSpanKind\x12\x19\n" +"\x15SPAN_KIND_UNSPECIFIED\x10\x00\x12\x16\n" +"\x12SPAN_KIND_INTERNAL\x10\x01\x12\x14\n" +"\x10SPAN_KIND_SERVER\x10\x02\x12\x14\n" +"\x10SPAN_KIND_CLIENT\x10\x03\x12\x16\n" +"\x12SPAN_KIND_PRODUCER\x10\x04\x12\x16\n" +"\x12SPAN_KIND_CONSUMER\x10\x05\"\xbd\x01\n" +"\x06Status\x12\x18\n" +"\amessage\x18\x02 \x01(\tR\amessage\x12C\n" +"\x04code\x18\x03 \x01(\x0e2/.opentelemetry.proto.trace.v1.Status.StatusCodeR\x04code\"N\n" +"\n" +"StatusCode\x12\x15\n" +"\x11STATUS_CODE_UNSET\x10\x00\x12\x12\n" +"\x0eSTATUS_CODE_OK\x10\x01\x12\x15\n" +"\x11STATUS_CODE_ERROR\x10\x02J\x04\b\x01\x10\x02*\x9c\x01\n" +"\tSpanFlags\x12\x19\n" +"\x15SPAN_FLAGS_DO_NOT_USE\x10\x00\x12 \n" +"\x1bSPAN_FLAGS_TRACE_FLAGS_MASK\x10\xff\x01\x12*\n" +"%SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK\x10\x80\x02\x12&\n" +"!SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK\x10\x80\x04Bw\n" +"\x1fio.opentelemetry.proto.trace.v1B\n" +"TraceProtoP\x01Z'go.opentelemetry.io/proto/otlp/trace/v1\xaa\x02\x1cOpenTelemetry.Proto.Trace.V1b\x06proto3"var (file_opentelemetry_proto_trace_v1_trace_proto_rawDescOncesync.Oncefile_opentelemetry_proto_trace_v1_trace_proto_rawDescData []byte)func () []byte {file_opentelemetry_proto_trace_v1_trace_proto_rawDescOnce.Do(func() {file_opentelemetry_proto_trace_v1_trace_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_opentelemetry_proto_trace_v1_trace_proto_rawDesc), len(file_opentelemetry_proto_trace_v1_trace_proto_rawDesc))) })returnfile_opentelemetry_proto_trace_v1_trace_proto_rawDescData}varfile_opentelemetry_proto_trace_v1_trace_proto_enumTypes = make([]protoimpl.EnumInfo, 3)varfile_opentelemetry_proto_trace_v1_trace_proto_msgTypes = make([]protoimpl.MessageInfo, 7)varfile_opentelemetry_proto_trace_v1_trace_proto_goTypes = []any{ (SpanFlags)(0), // 0: opentelemetry.proto.trace.v1.SpanFlags (Span_SpanKind)(0), // 1: opentelemetry.proto.trace.v1.Span.SpanKind (Status_StatusCode)(0), // 2: opentelemetry.proto.trace.v1.Status.StatusCode (*TracesData)(nil), // 3: opentelemetry.proto.trace.v1.TracesData (*ResourceSpans)(nil), // 4: opentelemetry.proto.trace.v1.ResourceSpans (*ScopeSpans)(nil), // 5: opentelemetry.proto.trace.v1.ScopeSpans (*Span)(nil), // 6: opentelemetry.proto.trace.v1.Span (*Status)(nil), // 7: opentelemetry.proto.trace.v1.Status (*Span_Event)(nil), // 8: opentelemetry.proto.trace.v1.Span.Event (*Span_Link)(nil), // 9: opentelemetry.proto.trace.v1.Span.Link (*v1.Resource)(nil), // 10: opentelemetry.proto.resource.v1.Resource (*v11.InstrumentationScope)(nil), // 11: opentelemetry.proto.common.v1.InstrumentationScope (*v11.KeyValue)(nil), // 12: opentelemetry.proto.common.v1.KeyValue}varfile_opentelemetry_proto_trace_v1_trace_proto_depIdxs = []int32{4, // 0: opentelemetry.proto.trace.v1.TracesData.resource_spans:type_name -> opentelemetry.proto.trace.v1.ResourceSpans10, // 1: opentelemetry.proto.trace.v1.ResourceSpans.resource:type_name -> opentelemetry.proto.resource.v1.Resource5, // 2: opentelemetry.proto.trace.v1.ResourceSpans.scope_spans:type_name -> opentelemetry.proto.trace.v1.ScopeSpans11, // 3: opentelemetry.proto.trace.v1.ScopeSpans.scope:type_name -> opentelemetry.proto.common.v1.InstrumentationScope6, // 4: opentelemetry.proto.trace.v1.ScopeSpans.spans:type_name -> opentelemetry.proto.trace.v1.Span1, // 5: opentelemetry.proto.trace.v1.Span.kind:type_name -> opentelemetry.proto.trace.v1.Span.SpanKind12, // 6: opentelemetry.proto.trace.v1.Span.attributes:type_name -> opentelemetry.proto.common.v1.KeyValue8, // 7: opentelemetry.proto.trace.v1.Span.events:type_name -> opentelemetry.proto.trace.v1.Span.Event9, // 8: opentelemetry.proto.trace.v1.Span.links:type_name -> opentelemetry.proto.trace.v1.Span.Link7, // 9: opentelemetry.proto.trace.v1.Span.status:type_name -> opentelemetry.proto.trace.v1.Status2, // 10: opentelemetry.proto.trace.v1.Status.code:type_name -> opentelemetry.proto.trace.v1.Status.StatusCode12, // 11: opentelemetry.proto.trace.v1.Span.Event.attributes:type_name -> opentelemetry.proto.common.v1.KeyValue12, // 12: opentelemetry.proto.trace.v1.Span.Link.attributes:type_name -> opentelemetry.proto.common.v1.KeyValue13, // [13:13] is the sub-list for method output_type13, // [13:13] is the sub-list for method input_type13, // [13:13] is the sub-list for extension type_name13, // [13:13] is the sub-list for extension extendee0, // [0:13] is the sub-list for field type_name}func () { file_opentelemetry_proto_trace_v1_trace_proto_init() }func () {ifFile_opentelemetry_proto_trace_v1_trace_proto != nil {return }typestruct{} := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf({}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_opentelemetry_proto_trace_v1_trace_proto_rawDesc), len(file_opentelemetry_proto_trace_v1_trace_proto_rawDesc)),NumEnums: 3,NumMessages: 7,NumExtensions: 0,NumServices: 0, },GoTypes: file_opentelemetry_proto_trace_v1_trace_proto_goTypes,DependencyIndexes: file_opentelemetry_proto_trace_v1_trace_proto_depIdxs,EnumInfos: file_opentelemetry_proto_trace_v1_trace_proto_enumTypes,MessageInfos: file_opentelemetry_proto_trace_v1_trace_proto_msgTypes, }.Build()File_opentelemetry_proto_trace_v1_trace_proto = .Filefile_opentelemetry_proto_trace_v1_trace_proto_goTypes = nilfile_opentelemetry_proto_trace_v1_trace_proto_depIdxs = nil}
The pages are generated with Goldsv0.8.7. (GOOS=linux GOARCH=amd64)