otel: go.opentelemetry.io/otel/exporters/otlp/internal/opentelemetry-proto-gen/trace/v1 Index | Files

package v1

import "go.opentelemetry.io/otel/exporters/otlp/internal/opentelemetry-proto-gen/trace/v1"

Index

Package Files

trace.pb.go

Variables

var (
    ErrInvalidLengthTrace        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowTrace          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupTrace = fmt.Errorf("proto: unexpected end of group")
)
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",
}
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,
}
var Status_StatusCode_name = map[int32]string{
    0:  "STATUS_CODE_OK",
    1:  "STATUS_CODE_CANCELLED",
    2:  "STATUS_CODE_UNKNOWN_ERROR",
    3:  "STATUS_CODE_INVALID_ARGUMENT",
    4:  "STATUS_CODE_DEADLINE_EXCEEDED",
    5:  "STATUS_CODE_NOT_FOUND",
    6:  "STATUS_CODE_ALREADY_EXISTS",
    7:  "STATUS_CODE_PERMISSION_DENIED",
    8:  "STATUS_CODE_RESOURCE_EXHAUSTED",
    9:  "STATUS_CODE_FAILED_PRECONDITION",
    10: "STATUS_CODE_ABORTED",
    11: "STATUS_CODE_OUT_OF_RANGE",
    12: "STATUS_CODE_UNIMPLEMENTED",
    13: "STATUS_CODE_INTERNAL_ERROR",
    14: "STATUS_CODE_UNAVAILABLE",
    15: "STATUS_CODE_DATA_LOSS",
    16: "STATUS_CODE_UNAUTHENTICATED",
}
var Status_StatusCode_value = map[string]int32{
    "STATUS_CODE_OK":                  0,
    "STATUS_CODE_CANCELLED":           1,
    "STATUS_CODE_UNKNOWN_ERROR":       2,
    "STATUS_CODE_INVALID_ARGUMENT":    3,
    "STATUS_CODE_DEADLINE_EXCEEDED":   4,
    "STATUS_CODE_NOT_FOUND":           5,
    "STATUS_CODE_ALREADY_EXISTS":      6,
    "STATUS_CODE_PERMISSION_DENIED":   7,
    "STATUS_CODE_RESOURCE_EXHAUSTED":  8,
    "STATUS_CODE_FAILED_PRECONDITION": 9,
    "STATUS_CODE_ABORTED":             10,
    "STATUS_CODE_OUT_OF_RANGE":        11,
    "STATUS_CODE_UNIMPLEMENTED":       12,
    "STATUS_CODE_INTERNAL_ERROR":      13,
    "STATUS_CODE_UNAVAILABLE":         14,
    "STATUS_CODE_DATA_LOSS":           15,
    "STATUS_CODE_UNAUTHENTICATED":     16,
}

type InstrumentationLibrarySpans Uses

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 *v11.InstrumentationLibrary `protobuf:"bytes,1,opt,name=instrumentation_library,json=instrumentationLibrary,proto3" json:"instrumentation_library,omitempty"`
    // A list of Spans that originate from an instrumentation library.
    Spans                []*Span  `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A collection of Spans produced by an InstrumentationLibrary.

func (*InstrumentationLibrarySpans) Descriptor Uses

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

func (*InstrumentationLibrarySpans) GetInstrumentationLibrary Uses

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

func (*InstrumentationLibrarySpans) GetSpans Uses

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

func (*InstrumentationLibrarySpans) Marshal Uses

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

func (*InstrumentationLibrarySpans) MarshalTo Uses

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

func (*InstrumentationLibrarySpans) MarshalToSizedBuffer Uses

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

func (*InstrumentationLibrarySpans) ProtoMessage Uses

func (*InstrumentationLibrarySpans) ProtoMessage()

func (*InstrumentationLibrarySpans) Reset Uses

func (m *InstrumentationLibrarySpans) Reset()

func (*InstrumentationLibrarySpans) Size Uses

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

func (*InstrumentationLibrarySpans) String Uses

func (m *InstrumentationLibrarySpans) String() string

func (*InstrumentationLibrarySpans) Unmarshal Uses

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

func (*InstrumentationLibrarySpans) XXX_DiscardUnknown Uses

func (m *InstrumentationLibrarySpans) XXX_DiscardUnknown()

func (*InstrumentationLibrarySpans) XXX_Marshal Uses

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

func (*InstrumentationLibrarySpans) XXX_Merge Uses

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

func (*InstrumentationLibrarySpans) XXX_Size Uses

func (m *InstrumentationLibrarySpans) XXX_Size() int

func (*InstrumentationLibrarySpans) XXX_Unmarshal Uses

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

type ResourceSpans Uses

type ResourceSpans struct {
    // 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 InstrumentationLibrarySpans that originate from a resource.
    InstrumentationLibrarySpans []*InstrumentationLibrarySpans `protobuf:"bytes,2,rep,name=instrumentation_library_spans,json=instrumentationLibrarySpans,proto3" json:"instrumentation_library_spans,omitempty"`
    XXX_NoUnkeyedLiteral        struct{}                       `json:"-"`
    XXX_unrecognized            []byte                         `json:"-"`
    XXX_sizecache               int32                          `json:"-"`
}

A collection of InstrumentationLibrarySpans from a Resource.

func (*ResourceSpans) Descriptor Uses

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

func (*ResourceSpans) GetInstrumentationLibrarySpans Uses

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

func (*ResourceSpans) GetResource Uses

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

func (*ResourceSpans) Marshal Uses

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

func (*ResourceSpans) MarshalTo Uses

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

func (*ResourceSpans) MarshalToSizedBuffer Uses

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

func (*ResourceSpans) ProtoMessage Uses

func (*ResourceSpans) ProtoMessage()

func (*ResourceSpans) Reset Uses

func (m *ResourceSpans) Reset()

func (*ResourceSpans) Size Uses

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

func (*ResourceSpans) String Uses

func (m *ResourceSpans) String() string

func (*ResourceSpans) Unmarshal Uses

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

func (*ResourceSpans) XXX_DiscardUnknown Uses

func (m *ResourceSpans) XXX_DiscardUnknown()

func (*ResourceSpans) XXX_Marshal Uses

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

func (*ResourceSpans) XXX_Merge Uses

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

func (*ResourceSpans) XXX_Size Uses

func (m *ResourceSpans) XXX_Size() int

func (*ResourceSpans) XXX_Unmarshal Uses

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

type Span Uses

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
    // is considered invalid.
    //
    // This field is semantically required. Receiver should generate new
    // random trace_id if empty or invalid trace_id was received.
    //
    // 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 is considered
    // invalid.
    //
    // This field is semantically required. Receiver should generate new
    // random span_id if empty or invalid span_id was received.
    //
    // 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.
    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 []byte `protobuf:"bytes,4,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,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.
    // When null or empty string received - receiver may use string "name"
    // as a replacement. There might be smarted algorithms implemented by
    // receiver to fix the empty 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. The value can be a string,
    // an integer, a double or the Boolean values `true` or `false`. 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
    //     "abc.com/myattribute": true
    //     "abc.com/score": 10.239
    Attributes []*v11.KeyValue `protobuf:"bytes,9,rep,name=attributes,proto3" json:"attributes,omitempty"`
    // 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 `protobuf:"varint,10,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
    // 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
    // wasn't set it is means span ended without errors and assume
    // Status.Ok (code = 0).
    Status               *Status  `protobuf:"bytes,15,opt,name=status,proto3" json:"status,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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 Uses

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

func (*Span) GetAttributes Uses

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

func (*Span) GetDroppedAttributesCount Uses

func (m *Span) GetDroppedAttributesCount() uint32

func (*Span) GetDroppedEventsCount Uses

func (m *Span) GetDroppedEventsCount() uint32

func (*Span) GetDroppedLinksCount Uses

func (m *Span) GetDroppedLinksCount() uint32

func (*Span) GetEndTimeUnixNano Uses

func (m *Span) GetEndTimeUnixNano() uint64

func (*Span) GetEvents Uses

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

func (*Span) GetKind Uses

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

func (*Span) GetName Uses

func (m *Span) GetName() string

func (*Span) GetParentSpanId Uses

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

func (*Span) GetSpanId Uses

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

func (*Span) GetStartTimeUnixNano Uses

func (m *Span) GetStartTimeUnixNano() uint64

func (*Span) GetStatus Uses

func (m *Span) GetStatus() *Status

func (*Span) GetTraceId Uses

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

func (*Span) GetTraceState Uses

func (m *Span) GetTraceState() string

func (*Span) Marshal Uses

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

func (*Span) MarshalTo Uses

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

func (*Span) MarshalToSizedBuffer Uses

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

func (*Span) ProtoMessage Uses

func (*Span) ProtoMessage()

func (*Span) Reset Uses

func (m *Span) Reset()

func (*Span) Size Uses

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

func (*Span) String Uses

func (m *Span) String() string

func (*Span) Unmarshal Uses

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

func (*Span) XXX_DiscardUnknown Uses

func (m *Span) XXX_DiscardUnknown()

func (*Span) XXX_Marshal Uses

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

func (*Span) XXX_Merge Uses

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

func (*Span) XXX_Size Uses

func (m *Span) XXX_Size() int

func (*Span) XXX_Unmarshal Uses

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

type Span_Event Uses

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.
    Attributes []*v11.KeyValue `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"`
    // dropped_attributes_count is the number of dropped attributes. If the value is 0,
    // then no attributes were dropped.
    DroppedAttributesCount uint32   `protobuf:"varint,4,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
    XXX_NoUnkeyedLiteral   struct{} `json:"-"`
    XXX_unrecognized       []byte   `json:"-"`
    XXX_sizecache          int32    `json:"-"`
}

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

func (*Span_Event) Descriptor Uses

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

func (*Span_Event) GetAttributes Uses

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

func (*Span_Event) GetDroppedAttributesCount Uses

func (m *Span_Event) GetDroppedAttributesCount() uint32

func (*Span_Event) GetName Uses

func (m *Span_Event) GetName() string

func (*Span_Event) GetTimeUnixNano Uses

func (m *Span_Event) GetTimeUnixNano() uint64

func (*Span_Event) Marshal Uses

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

func (*Span_Event) MarshalTo Uses

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

func (*Span_Event) MarshalToSizedBuffer Uses

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

func (*Span_Event) ProtoMessage Uses

func (*Span_Event) ProtoMessage()

func (*Span_Event) Reset Uses

func (m *Span_Event) Reset()

func (*Span_Event) Size Uses

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

func (*Span_Event) String Uses

func (m *Span_Event) String() string

func (*Span_Event) Unmarshal Uses

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

func (*Span_Event) XXX_DiscardUnknown Uses

func (m *Span_Event) XXX_DiscardUnknown()

func (*Span_Event) XXX_Marshal Uses

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

func (*Span_Event) XXX_Merge Uses

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

func (*Span_Event) XXX_Size Uses

func (m *Span_Event) XXX_Size() int

func (*Span_Event) XXX_Unmarshal Uses

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 []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.
    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.
    Attributes []*v11.KeyValue `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"`
    // dropped_attributes_count is the number of dropped attributes. If the value is 0,
    // then no attributes were dropped.
    DroppedAttributesCount uint32   `protobuf:"varint,5,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
    XXX_NoUnkeyedLiteral   struct{} `json:"-"`
    XXX_unrecognized       []byte   `json:"-"`
    XXX_sizecache          int32    `json:"-"`
}

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 Uses

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

func (*Span_Link) GetAttributes Uses

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

func (*Span_Link) GetDroppedAttributesCount Uses

func (m *Span_Link) GetDroppedAttributesCount() uint32

func (*Span_Link) GetSpanId Uses

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

func (*Span_Link) GetTraceId Uses

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

func (*Span_Link) GetTraceState Uses

func (m *Span_Link) GetTraceState() string

func (*Span_Link) Marshal Uses

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

func (*Span_Link) MarshalTo Uses

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

func (*Span_Link) MarshalToSizedBuffer Uses

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

func (*Span_Link) ProtoMessage Uses

func (*Span_Link) ProtoMessage()

func (*Span_Link) Reset Uses

func (m *Span_Link) Reset()

func (*Span_Link) Size Uses

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

func (*Span_Link) String Uses

func (m *Span_Link) String() string

func (*Span_Link) Unmarshal Uses

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

func (*Span_Link) XXX_DiscardUnknown Uses

func (m *Span_Link) XXX_DiscardUnknown()

func (*Span_Link) XXX_Marshal Uses

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

func (*Span_Link) XXX_Merge Uses

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

func (*Span_Link) XXX_Size Uses

func (m *Span_Link) XXX_Size() int

func (*Span_Link) XXX_Unmarshal Uses

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

type Span_SpanKind Uses

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_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 Uses

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

func (Span_SpanKind) String Uses

func (x Span_SpanKind) String() string

type Status Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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

func (*Status) Descriptor Uses

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

func (*Status) GetCode Uses

func (m *Status) GetCode() Status_StatusCode

func (*Status) GetMessage Uses

func (m *Status) GetMessage() string

func (*Status) Marshal Uses

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

func (*Status) MarshalTo Uses

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

func (*Status) MarshalToSizedBuffer Uses

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

func (*Status) ProtoMessage Uses

func (*Status) ProtoMessage()

func (*Status) Reset Uses

func (m *Status) Reset()

func (*Status) Size Uses

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

func (*Status) String Uses

func (m *Status) String() string

func (*Status) Unmarshal Uses

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

func (*Status) XXX_DiscardUnknown Uses

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal Uses

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

func (*Status) XXX_Merge Uses

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

func (*Status) XXX_Size Uses

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal Uses

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

type Status_StatusCode Uses

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_STATUS_CODE_OK                  Status_StatusCode = 0
    Status_STATUS_CODE_CANCELLED           Status_StatusCode = 1
    Status_STATUS_CODE_UNKNOWN_ERROR       Status_StatusCode = 2
    Status_STATUS_CODE_INVALID_ARGUMENT    Status_StatusCode = 3
    Status_STATUS_CODE_DEADLINE_EXCEEDED   Status_StatusCode = 4
    Status_STATUS_CODE_NOT_FOUND           Status_StatusCode = 5
    Status_STATUS_CODE_ALREADY_EXISTS      Status_StatusCode = 6
    Status_STATUS_CODE_PERMISSION_DENIED   Status_StatusCode = 7
    Status_STATUS_CODE_RESOURCE_EXHAUSTED  Status_StatusCode = 8
    Status_STATUS_CODE_FAILED_PRECONDITION Status_StatusCode = 9
    Status_STATUS_CODE_ABORTED             Status_StatusCode = 10
    Status_STATUS_CODE_OUT_OF_RANGE        Status_StatusCode = 11
    Status_STATUS_CODE_UNIMPLEMENTED       Status_StatusCode = 12
    Status_STATUS_CODE_INTERNAL_ERROR      Status_StatusCode = 13
    Status_STATUS_CODE_UNAVAILABLE         Status_StatusCode = 14
    Status_STATUS_CODE_DATA_LOSS           Status_StatusCode = 15
    Status_STATUS_CODE_UNAUTHENTICATED     Status_StatusCode = 16
)

func (Status_StatusCode) EnumDescriptor Uses

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

func (Status_StatusCode) String Uses

func (x Status_StatusCode) String() string

Package v1 imports 8 packages (graph) and is imported by 2 packages. Updated 2020-10-20. Refresh now. Tools for package owners.