Back to godoc.org
go.opentelemetry.io/collector/internal/data/opentelemetry-proto-gen/trace/v1

package v1

v0.4.0
Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Overview

Package v1 is a generated protocol buffer package.

It is generated from these files:

opentelemetry/proto/trace/v1/trace.proto

It has these top-level messages:

ResourceSpans
InstrumentationLibrarySpans
Span
Status

Index

Variables

var (
	ErrInvalidLengthTrace = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTrace   = fmt.Errorf("proto: integer overflow")
)
var Span_SpanKind_name = map[int32]string{
	0: "SPAN_KIND_UNSPECIFIED",
	1: "INTERNAL",
	2: "SERVER",
	3: "CLIENT",
	4: "PRODUCER",
	5: "CONSUMER",
}
var Span_SpanKind_value = map[string]int32{
	"SPAN_KIND_UNSPECIFIED": 0,
	"INTERNAL":              1,
	"SERVER":                2,
	"CLIENT":                3,
	"PRODUCER":              4,
	"CONSUMER":              5,
}
var Status_StatusCode_name = map[int32]string{
	0:  "Ok",
	1:  "Cancelled",
	2:  "UnknownError",
	3:  "InvalidArgument",
	4:  "DeadlineExceeded",
	5:  "NotFound",
	6:  "AlreadyExists",
	7:  "PermissionDenied",
	8:  "ResourceExhausted",
	9:  "FailedPrecondition",
	10: "Aborted",
	11: "OutOfRange",
	12: "Unimplemented",
	13: "InternalError",
	14: "Unavailable",
	15: "DataLoss",
	16: "Unauthenticated",
}
var Status_StatusCode_value = map[string]int32{
	"Ok":                 0,
	"Cancelled":          1,
	"UnknownError":       2,
	"InvalidArgument":    3,
	"DeadlineExceeded":   4,
	"NotFound":           5,
	"AlreadyExists":      6,
	"PermissionDenied":   7,
	"ResourceExhausted":  8,
	"FailedPrecondition": 9,
	"Aborted":            10,
	"OutOfRange":         11,
	"Unimplemented":      12,
	"InternalError":      13,
	"Unavailable":        14,
	"DataLoss":           15,
	"Unauthenticated":    16,
}

type InstrumentationLibrarySpans

type InstrumentationLibrarySpans struct {
	// The instrumentation library information for the spans in this message.
	// If this field is not set then no library info is known.
	InstrumentationLibrary *opentelemetry_proto_common_v1.InstrumentationLibrary `protobuf:"bytes,1,opt,name=instrumentation_library,json=instrumentationLibrary" json:"instrumentation_library,omitempty"`
	// A list of Spans that originate from an instrumentation library.
	Spans []*Span `protobuf:"bytes,2,rep,name=spans" json:"spans,omitempty"`
}

A collection of Spans produced by an InstrumentationLibrary.

func (*InstrumentationLibrarySpans) Descriptor

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

func (*InstrumentationLibrarySpans) GetInstrumentationLibrary

func (m *InstrumentationLibrarySpans) GetInstrumentationLibrary() *opentelemetry_proto_common_v1.InstrumentationLibrary

func (*InstrumentationLibrarySpans) GetSpans

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

func (*InstrumentationLibrarySpans) Marshal

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

func (*InstrumentationLibrarySpans) MarshalTo

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

func (*InstrumentationLibrarySpans) ProtoMessage

func (*InstrumentationLibrarySpans) ProtoMessage()

func (*InstrumentationLibrarySpans) Reset

func (m *InstrumentationLibrarySpans) Reset()

func (*InstrumentationLibrarySpans) Size

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

func (*InstrumentationLibrarySpans) String

func (m *InstrumentationLibrarySpans) String() string

func (*InstrumentationLibrarySpans) Unmarshal

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

type ResourceSpans

type ResourceSpans struct {
	Resource *opentelemetry_proto_resource_v1.Resource `protobuf:"bytes,1,opt,name=resource" json:"resource,omitempty"`

	InstrumentationLibrarySpans []*InstrumentationLibrarySpans "" /* 137 byte string literal not displayed */
}

A collection of InstrumentationLibrarySpans from a Resource.

func (*ResourceSpans) Descriptor

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

func (*ResourceSpans) GetInstrumentationLibrarySpans

func (m *ResourceSpans) GetInstrumentationLibrarySpans() []*InstrumentationLibrarySpans

func (*ResourceSpans) GetResource

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

func (*ResourceSpans) Marshal

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

func (*ResourceSpans) MarshalTo

func (m *ResourceSpans) MarshalTo(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

type Span

type Span struct {
	TraceId []byte `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`

	SpanId []byte `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`

	TraceState string `protobuf:"bytes,3,opt,name=trace_state,json=traceState,proto3" json:"trace_state,omitempty"`

	ParentSpanId []byte `protobuf:"bytes,4,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"`

	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`

	Kind Span_SpanKind `protobuf:"varint,6,opt,name=kind,proto3,enum=opentelemetry.proto.trace.v1.Span_SpanKind" json:"kind,omitempty"`

	StartTimeUnixNano uint64 `protobuf:"fixed64,7,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`

	EndTimeUnixNano uint64 `protobuf:"fixed64,8,opt,name=end_time_unix_nano,json=endTimeUnixNano,proto3" json:"end_time_unix_nano,omitempty"`

	Attributes []*opentelemetry_proto_common_v1.AttributeKeyValue `protobuf:"bytes,9,rep,name=attributes" json:"attributes,omitempty"`

	DroppedAttributesCount uint32 "" /* 131 byte string literal not displayed */

	Events []*Span_Event `protobuf:"bytes,11,rep,name=events" json:"events,omitempty"`

	DroppedEventsCount uint32 `protobuf:"varint,12,opt,name=dropped_events_count,json=droppedEventsCount,proto3" json:"dropped_events_count,omitempty"`

	Links []*Span_Link `protobuf:"bytes,13,rep,name=links" json:"links,omitempty"`

	DroppedLinksCount uint32 `protobuf:"varint,14,opt,name=dropped_links_count,json=droppedLinksCount,proto3" json:"dropped_links_count,omitempty"`

	Status *Status `protobuf:"bytes,15,opt,name=status" json:"status,omitempty"`
}

Span represents a single operation within a trace. Spans can be nested to form a trace tree. Spans may also be linked to other spans from the same or different trace and form graphs. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do not need to be contiguous - there may be gaps or overlaps between spans in a trace.

The next available field id is 17.

func (*Span) Descriptor

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

func (*Span) GetAttributes

func (m *Span) GetAttributes() []*opentelemetry_proto_common_v1.AttributeKeyValue

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) GetKind

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

func (*Span) GetName

func (m *Span) GetName() string

func (*Span) GetParentSpanId

func (m *Span) GetParentSpanId() []byte

func (*Span) GetSpanId

func (m *Span) GetSpanId() []byte

func (*Span) GetStartTimeUnixNano

func (m *Span) GetStartTimeUnixNano() uint64

func (*Span) GetStatus

func (m *Span) GetStatus() *Status

func (*Span) GetTraceId

func (m *Span) GetTraceId() []byte

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) 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

type Span_Event

type Span_Event struct {
	TimeUnixNano uint64 `protobuf:"fixed64,1,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`

	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`

	Attributes []*opentelemetry_proto_common_v1.AttributeKeyValue `protobuf:"bytes,3,rep,name=attributes" json:"attributes,omitempty"`

	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() []*opentelemetry_proto_common_v1.AttributeKeyValue

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) 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
type Span_Link struct {
	TraceId []byte `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`

	SpanId []byte `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`

	TraceState string `protobuf:"bytes,3,opt,name=trace_state,json=traceState,proto3" json:"trace_state,omitempty"`

	Attributes []*opentelemetry_proto_common_v1.AttributeKeyValue `protobuf:"bytes,4,rep,name=attributes" json:"attributes,omitempty"`

	DroppedAttributesCount uint32 "" /* 130 byte string literal not displayed */
}

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() []*opentelemetry_proto_common_v1.AttributeKeyValue

func (*Span_Link) GetDroppedAttributesCount

func (m *Span_Link) GetDroppedAttributesCount() uint32

func (*Span_Link) GetSpanId

func (m *Span_Link) GetSpanId() []byte

func (*Span_Link) GetTraceId

func (m *Span_Link) GetTraceId() []byte

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) 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

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 operations happening at the boundaries. Default value.
	Span_INTERNAL Span_SpanKind = 1
	// Indicates that the span covers server-side handling of an RPC or other
	// remote network request.
	Span_SERVER Span_SpanKind = 2
	// Indicates that the span describes a request to some remote service.
	Span_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_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_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 {
	// The status code. This is optional field. It is safe to assume 0 (OK)
	// when not set.
	Code Status_StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=opentelemetry.proto.trace.v1.Status_StatusCode" json:"code,omitempty"`
	// A developer-facing human readable error message.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,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) 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

type Status_StatusCode

type Status_StatusCode int32

StatusCode mirrors the codes defined at https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/api-tracing.md#statuscanonicalcode

const (
	Status_Ok                 Status_StatusCode = 0
	Status_Cancelled          Status_StatusCode = 1
	Status_UnknownError       Status_StatusCode = 2
	Status_InvalidArgument    Status_StatusCode = 3
	Status_DeadlineExceeded   Status_StatusCode = 4
	Status_NotFound           Status_StatusCode = 5
	Status_AlreadyExists      Status_StatusCode = 6
	Status_PermissionDenied   Status_StatusCode = 7
	Status_ResourceExhausted  Status_StatusCode = 8
	Status_FailedPrecondition Status_StatusCode = 9
	Status_Aborted            Status_StatusCode = 10
	Status_OutOfRange         Status_StatusCode = 11
	Status_Unimplemented      Status_StatusCode = 12
	Status_InternalError      Status_StatusCode = 13
	Status_Unavailable        Status_StatusCode = 14
	Status_DataLoss           Status_StatusCode = 15
	Status_Unauthenticated    Status_StatusCode = 16
)

func (Status_StatusCode) EnumDescriptor

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

func (Status_StatusCode) String

func (x Status_StatusCode) String() string
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier