v1

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTrace        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTrace          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTrace = fmt.Errorf("proto: unexpected end of group")
)
View Source
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",
}
View Source
var 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,
}
View Source
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",
}
View Source
var 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,
}
View Source
var Status_StatusCode_name = map[int32]string{
	0: "STATUS_CODE_UNSET",
	1: "STATUS_CODE_OK",
	2: "STATUS_CODE_ERROR",
}
View Source
var Status_StatusCode_value = map[string]int32{
	"STATUS_CODE_UNSET": 0,
	"STATUS_CODE_OK":    1,
	"STATUS_CODE_ERROR": 2,
}

Functions

This section is empty.

Types

type ResourceSpans

type ResourceSpans struct {
	DeprecatedScopeSpans []*ScopeSpans `` /* 126-byte string literal not displayed */
	// 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"`
	// 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. 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.
	SchemaUrl string `protobuf:"bytes,3,opt,name=schema_url,json=schemaUrl,proto3" json:"schema_url,omitempty"`
}

A collection of ScopeSpans from a Resource.

func (*ResourceSpans) Descriptor

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

func (*ResourceSpans) GetDeprecatedScopeSpans added in v0.63.0

func (m *ResourceSpans) GetDeprecatedScopeSpans() []*ScopeSpans

func (*ResourceSpans) GetResource

func (m *ResourceSpans) GetResource() v1.Resource

func (*ResourceSpans) GetSchemaUrl

func (m *ResourceSpans) GetSchemaUrl() string

func (*ResourceSpans) GetScopeSpans

func (m *ResourceSpans) GetScopeSpans() []*ScopeSpans

func (*ResourceSpans) Marshal

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

func (*ResourceSpans) MarshalTo

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

func (*ResourceSpans) MarshalToSizedBuffer

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

func (*ResourceSpans) ProtoMessage

func (*ResourceSpans) ProtoMessage()

func (*ResourceSpans) Reset

func (m *ResourceSpans) Reset()

func (*ResourceSpans) Size

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

func (*ResourceSpans) String

func (m *ResourceSpans) String() string

func (*ResourceSpans) Unmarshal

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

func (*ResourceSpans) XXX_DiscardUnknown

func (m *ResourceSpans) XXX_DiscardUnknown()

func (*ResourceSpans) XXX_Marshal

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

func (*ResourceSpans) XXX_Merge

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

func (*ResourceSpans) XXX_Size

func (m *ResourceSpans) XXX_Size() int

func (*ResourceSpans) XXX_Unmarshal

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

type ScopeSpans

type ScopeSpans struct {
	// 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"`
	// 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. To learn more about Schema URL see
	// https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
	// This schema_url applies to all spans and span events in the "spans" field.
	SchemaUrl string `protobuf:"bytes,3,opt,name=schema_url,json=schemaUrl,proto3" json:"schema_url,omitempty"`
}

A collection of Spans produced by an InstrumentationScope.

func (*ScopeSpans) Descriptor

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

func (*ScopeSpans) GetSchemaUrl

func (m *ScopeSpans) GetSchemaUrl() string

func (*ScopeSpans) GetScope

func (m *ScopeSpans) GetScope() v11.InstrumentationScope

func (*ScopeSpans) GetSpans

func (m *ScopeSpans) GetSpans() []*Span

func (*ScopeSpans) Marshal

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

func (*ScopeSpans) MarshalTo

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

func (*ScopeSpans) MarshalToSizedBuffer

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

func (*ScopeSpans) ProtoMessage

func (*ScopeSpans) ProtoMessage()

func (*ScopeSpans) Reset

func (m *ScopeSpans) Reset()

func (*ScopeSpans) Size

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

func (*ScopeSpans) String

func (m *ScopeSpans) String() string

func (*ScopeSpans) Unmarshal

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

func (*ScopeSpans) XXX_DiscardUnknown

func (m *ScopeSpans) XXX_DiscardUnknown()

func (*ScopeSpans) XXX_Marshal

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

func (*ScopeSpans) XXX_Merge

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

func (*ScopeSpans) XXX_Size

func (m *ScopeSpans) XXX_Size() int

func (*ScopeSpans) XXX_Unmarshal

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

type Span

type Span struct {
	// 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 go_opentelemetry_io_collector_pdata_internal_data.TraceID `` /* 141-byte string literal not displayed */
	// 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 go_opentelemetry_io_collector_pdata_internal_data.SpanID `` /* 137-byte string literal not displayed */
	// 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.
	TraceState string `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 go_opentelemetry_io_collector_pdata_internal_data.SpanID `` /* 157-byte string literal not displayed */
	// 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].
	Flags uint32 `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.
	Name string `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.
	Kind Span_SpanKind `protobuf:"varint,6,opt,name=kind,proto3,enum=opentelemetry.proto.trace.v1.Span_SpanKind" json:"kind,omitempty"`
	// start_time_unix_nano is 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.
	StartTimeUnixNano uint64 `protobuf:"fixed64,7,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`
	// end_time_unix_nano is 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.
	EndTimeUnixNano uint64 `protobuf:"fixed64,8,opt,name=end_time_unix_nano,json=endTimeUnixNano,proto3" json:"end_time_unix_nano,omitempty"`
	// attributes is a collection of key/value pairs. Note, global attributes
	// like server name can be set using the resource API. Examples of attributes:
	//
	//     "/http/user_agent": "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/server_latency": 300
	//     "example.com/myattribute": true
	//     "example.com/score": 10.239
	//
	// The OpenTelemetry API specification further restricts the allowed value types:
	// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
	// Attribute keys MUST be unique (it is not allowed to have more than one
	// attribute with the same key).
	Attributes []v11.KeyValue `protobuf:"bytes,9,rep,name=attributes,proto3" json:"attributes"`
	// dropped_attributes_count is 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.
	DroppedAttributesCount uint32 `` /* 131-byte string literal not displayed */
	// events is a collection of Event items.
	Events []*Span_Event `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"`
	// dropped_events_count is the number of dropped events. If the value is 0, then no
	// events were dropped.
	DroppedEventsCount uint32 `protobuf:"varint,12,opt,name=dropped_events_count,json=droppedEventsCount,proto3" json:"dropped_events_count,omitempty"`
	// links is 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"`
	// dropped_links_count is the number of dropped links after the maximum size was
	// enforced. If this value is 0, then no links were dropped.
	DroppedLinksCount uint32 `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"`
}

A Span represents a single operation performed by a single component of the system.

The next available field id is 17.

func (*Span) Descriptor

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

func (*Span) GetAttributes

func (m *Span) GetAttributes() []v11.KeyValue

func (*Span) GetDroppedAttributesCount

func (m *Span) GetDroppedAttributesCount() uint32

func (*Span) GetDroppedEventsCount

func (m *Span) GetDroppedEventsCount() uint32

func (*Span) GetDroppedLinksCount

func (m *Span) GetDroppedLinksCount() uint32

func (*Span) GetEndTimeUnixNano

func (m *Span) GetEndTimeUnixNano() uint64

func (*Span) GetEvents

func (m *Span) GetEvents() []*Span_Event

func (*Span) GetFlags added in v1.3.0

func (m *Span) GetFlags() uint32

func (*Span) GetKind

func (m *Span) GetKind() Span_SpanKind
func (m *Span) GetLinks() []*Span_Link

func (*Span) GetName

func (m *Span) GetName() string

func (*Span) GetStartTimeUnixNano

func (m *Span) GetStartTimeUnixNano() uint64

func (*Span) GetStatus

func (m *Span) GetStatus() Status

func (*Span) GetTraceState

func (m *Span) GetTraceState() string

func (*Span) Marshal

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

func (*Span) MarshalTo

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

func (*Span) MarshalToSizedBuffer

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

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) Reset

func (m *Span) Reset()

func (*Span) Size

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

func (*Span) String

func (m *Span) String() string

func (*Span) Unmarshal

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

func (*Span) XXX_DiscardUnknown

func (m *Span) XXX_DiscardUnknown()

func (*Span) XXX_Marshal

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

func (*Span) XXX_Merge

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

func (*Span) XXX_Size

func (m *Span) XXX_Size() int

func (*Span) XXX_Unmarshal

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

type SpanFlags added in v1.3.0

type SpanFlags int32

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.

const (
	// 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_USE SpanFlags = 0
	// Bits 0-7 are used for trace flags.
	SpanFlags_SPAN_FLAGS_TRACE_FLAGS_MASK SpanFlags = 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.
	SpanFlags_SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK SpanFlags = 256
	SpanFlags_SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK     SpanFlags = 512
)

func (SpanFlags) EnumDescriptor added in v1.3.0

func (SpanFlags) EnumDescriptor() ([]byte, []int)

func (SpanFlags) String added in v1.3.0

func (x SpanFlags) String() string

type Span_Event

type Span_Event struct {
	// time_unix_nano is the time the event occurred.
	TimeUnixNano uint64 `protobuf:"fixed64,1,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
	// name of the event.
	// This field is semantically required to be set to non-empty string.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// attributes is 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).
	Attributes []v11.KeyValue `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes"`
	// dropped_attributes_count is the number of dropped attributes. If the value is 0,
	// then no attributes were dropped.
	DroppedAttributesCount uint32 `` /* 130-byte string literal not displayed */
}

Event is a time-stamped annotation of the span, consisting of user-supplied text description and key-value pairs.

func (*Span_Event) Descriptor

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

func (*Span_Event) GetAttributes

func (m *Span_Event) GetAttributes() []v11.KeyValue

func (*Span_Event) GetDroppedAttributesCount

func (m *Span_Event) GetDroppedAttributesCount() uint32

func (*Span_Event) GetName

func (m *Span_Event) GetName() string

func (*Span_Event) GetTimeUnixNano

func (m *Span_Event) GetTimeUnixNano() uint64

func (*Span_Event) Marshal

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

func (*Span_Event) MarshalTo

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

func (*Span_Event) MarshalToSizedBuffer

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

func (*Span_Event) ProtoMessage

func (*Span_Event) ProtoMessage()

func (*Span_Event) Reset

func (m *Span_Event) Reset()

func (*Span_Event) Size

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

func (*Span_Event) String

func (m *Span_Event) String() string

func (*Span_Event) Unmarshal

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

func (*Span_Event) XXX_DiscardUnknown

func (m *Span_Event) XXX_DiscardUnknown()

func (*Span_Event) XXX_Marshal

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

func (*Span_Event) XXX_Merge

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

func (*Span_Event) XXX_Size

func (m *Span_Event) XXX_Size() int

func (*Span_Event) XXX_Unmarshal

func (m *Span_Event) XXX_Unmarshal(b []byte) error
type Span_Link struct {
	// A unique identifier of a trace that this linked span is part of. The ID is a
	// 16-byte array.
	TraceId go_opentelemetry_io_collector_pdata_internal_data.TraceID `` /* 141-byte string literal not displayed */
	// A unique identifier for the linked span. The ID is an 8-byte array.
	SpanId go_opentelemetry_io_collector_pdata_internal_data.SpanID `` /* 137-byte string literal not displayed */
	// The trace_state associated with the link.
	TraceState string `protobuf:"bytes,3,opt,name=trace_state,json=traceState,proto3" json:"trace_state,omitempty"`
	// attributes is 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).
	Attributes []v11.KeyValue `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes"`
	// dropped_attributes_count is the number of dropped attributes. If the value is 0,
	// then no attributes were dropped.
	DroppedAttributesCount uint32 `` /* 130-byte string literal not displayed */
	// 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].
	Flags uint32 `protobuf:"fixed32,6,opt,name=flags,proto3" json:"flags,omitempty"`
}

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.

func (*Span_Link) Descriptor

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

func (*Span_Link) GetAttributes

func (m *Span_Link) GetAttributes() []v11.KeyValue

func (*Span_Link) GetDroppedAttributesCount

func (m *Span_Link) GetDroppedAttributesCount() uint32

func (*Span_Link) GetFlags added in v1.3.0

func (m *Span_Link) GetFlags() uint32

func (*Span_Link) GetTraceState

func (m *Span_Link) GetTraceState() string

func (*Span_Link) Marshal

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

func (*Span_Link) MarshalTo

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

func (*Span_Link) MarshalToSizedBuffer

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

func (*Span_Link) ProtoMessage

func (*Span_Link) ProtoMessage()

func (*Span_Link) Reset

func (m *Span_Link) Reset()

func (*Span_Link) Size

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

func (*Span_Link) String

func (m *Span_Link) String() string

func (*Span_Link) Unmarshal

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

func (*Span_Link) XXX_DiscardUnknown

func (m *Span_Link) XXX_DiscardUnknown()

func (*Span_Link) XXX_Marshal

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

func (*Span_Link) XXX_Merge

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

func (*Span_Link) XXX_Size

func (m *Span_Link) XXX_Size() int

func (*Span_Link) XXX_Unmarshal

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

type Span_SpanKind

type Span_SpanKind int32

SpanKind is the type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.

const (
	// Unspecified. Do NOT use as default.
	// Implementations MAY assume SpanKind to be INTERNAL when receiving UNSPECIFIED.
	Span_SPAN_KIND_UNSPECIFIED Span_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_INTERNAL Span_SpanKind = 1
	// Indicates that the span covers server-side handling of an RPC or other
	// remote network request.
	Span_SPAN_KIND_SERVER Span_SpanKind = 2
	// Indicates that the span describes a request to some remote service.
	Span_SPAN_KIND_CLIENT Span_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_PRODUCER Span_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_CONSUMER Span_SpanKind = 5
)

func (Span_SpanKind) EnumDescriptor

func (Span_SpanKind) EnumDescriptor() ([]byte, []int)

func (Span_SpanKind) String

func (x Span_SpanKind) String() string

type Status

type Status struct {
	// A developer-facing human readable error message.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// The status code.
	Code Status_StatusCode `protobuf:"varint,3,opt,name=code,proto3,enum=opentelemetry.proto.trace.v1.Status_StatusCode" json:"code,omitempty"`
}

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.

func (*Status) Descriptor

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

func (*Status) GetCode

func (m *Status) GetCode() Status_StatusCode

func (*Status) GetMessage

func (m *Status) GetMessage() string

func (*Status) Marshal

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

func (*Status) MarshalTo

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

func (*Status) MarshalToSizedBuffer

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

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) Size

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

func (*Status) String

func (m *Status) String() string

func (*Status) Unmarshal

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

func (*Status) XXX_DiscardUnknown

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal

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

func (*Status) XXX_Merge

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

func (*Status) XXX_Size

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal

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

type Status_StatusCode

type Status_StatusCode int32

For the semantics of status codes see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status

const (
	// The default status.
	Status_STATUS_CODE_UNSET Status_StatusCode = 0
	// The Span has been validated by an Application developer or Operator to
	// have completed successfully.
	Status_STATUS_CODE_OK Status_StatusCode = 1
	// The Span contains an error.
	Status_STATUS_CODE_ERROR Status_StatusCode = 2
)

func (Status_StatusCode) EnumDescriptor

func (Status_StatusCode) EnumDescriptor() ([]byte, []int)

func (Status_StatusCode) String

func (x Status_StatusCode) String() string

type TracesData

type TracesData struct {
	// 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"`
}

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.

func (*TracesData) Descriptor

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

func (*TracesData) GetResourceSpans

func (m *TracesData) GetResourceSpans() []*ResourceSpans

func (*TracesData) Marshal

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

func (*TracesData) MarshalTo

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

func (*TracesData) MarshalToSizedBuffer

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

func (*TracesData) ProtoMessage

func (*TracesData) ProtoMessage()

func (*TracesData) Reset

func (m *TracesData) Reset()

func (*TracesData) Size

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

func (*TracesData) String

func (m *TracesData) String() string

func (*TracesData) Unmarshal

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

func (*TracesData) XXX_DiscardUnknown

func (m *TracesData) XXX_DiscardUnknown()

func (*TracesData) XXX_Marshal

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

func (*TracesData) XXX_Merge

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

func (*TracesData) XXX_Size

func (m *TracesData) XXX_Size() int

func (*TracesData) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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