Back to godoc.org

Package v1

v0.3.0
Latest Go to latest

The latest major version is .

Published: Jul 21, 2020 | License: Apache-2.0 | Module: github.com/census-instrumentation/opencensus-proto

Index

Variables

var (
	Span_SpanKind_name = map[int32]string{
		0: "SPAN_KIND_UNSPECIFIED",
		1: "SERVER",
		2: "CLIENT",
	}
	Span_SpanKind_value = map[string]int32{
		"SPAN_KIND_UNSPECIFIED": 0,
		"SERVER":                1,
		"CLIENT":                2,
	}
)

Enum value maps for Span_SpanKind.

var (
	Span_TimeEvent_MessageEvent_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "SENT",
		2: "RECEIVED",
	}
	Span_TimeEvent_MessageEvent_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"SENT":             1,
		"RECEIVED":         2,
	}
)

Enum value maps for Span_TimeEvent_MessageEvent_Type.

var (
	Span_Link_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "CHILD_LINKED_SPAN",
		2: "PARENT_LINKED_SPAN",
	}
	Span_Link_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED":   0,
		"CHILD_LINKED_SPAN":  1,
		"PARENT_LINKED_SPAN": 2,
	}
)

Enum value maps for Span_Link_Type.

var (
	ConstantSampler_ConstantDecision_name = map[int32]string{
		0: "ALWAYS_OFF",
		1: "ALWAYS_ON",
		2: "ALWAYS_PARENT",
	}
	ConstantSampler_ConstantDecision_value = map[string]int32{
		"ALWAYS_OFF":    0,
		"ALWAYS_ON":     1,
		"ALWAYS_PARENT": 2,
	}
)

Enum value maps for ConstantSampler_ConstantDecision.

var File_opencensus_proto_trace_v1_trace_config_proto protoreflect.FileDescriptor
var File_opencensus_proto_trace_v1_trace_proto protoreflect.FileDescriptor

type AttributeValue

type AttributeValue struct {

	// The type of the value.
	//
	// Types that are assignable to Value:
	//	*AttributeValue_StringValue
	//	*AttributeValue_IntValue
	//	*AttributeValue_BoolValue
	//	*AttributeValue_DoubleValue
	Value isAttributeValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

The value of an Attribute.

func (*AttributeValue) Descriptor

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

Deprecated: Use AttributeValue.ProtoReflect.Descriptor instead.

func (*AttributeValue) GetBoolValue

func (x *AttributeValue) GetBoolValue() bool

func (*AttributeValue) GetDoubleValue

func (x *AttributeValue) GetDoubleValue() float64

func (*AttributeValue) GetIntValue

func (x *AttributeValue) GetIntValue() int64

func (*AttributeValue) GetStringValue

func (x *AttributeValue) GetStringValue() *TruncatableString

func (*AttributeValue) GetValue

func (m *AttributeValue) GetValue() isAttributeValue_Value

func (*AttributeValue) ProtoMessage

func (*AttributeValue) ProtoMessage()

func (*AttributeValue) ProtoReflect

func (x *AttributeValue) ProtoReflect() protoreflect.Message

func (*AttributeValue) Reset

func (x *AttributeValue) Reset()

func (*AttributeValue) String

func (x *AttributeValue) String() string

type AttributeValue_BoolValue

type AttributeValue_BoolValue struct {
	// A Boolean value represented by `true` or `false`.
	BoolValue bool `protobuf:"varint,3,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type AttributeValue_DoubleValue

type AttributeValue_DoubleValue struct {
	// A double value.
	DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type AttributeValue_IntValue

type AttributeValue_IntValue struct {
	// A 64-bit signed integer.
	IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}

type AttributeValue_StringValue

type AttributeValue_StringValue struct {
	// A string up to 256 bytes long.
	StringValue *TruncatableString `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type ConstantSampler

type ConstantSampler struct {
	Decision ConstantSampler_ConstantDecision "" /* 134 byte string literal not displayed */

}

Sampler that always makes a constant decision on span sampling.

func (*ConstantSampler) Descriptor

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

Deprecated: Use ConstantSampler.ProtoReflect.Descriptor instead.

func (*ConstantSampler) GetDecision

func (x *ConstantSampler) GetDecision() ConstantSampler_ConstantDecision

func (*ConstantSampler) ProtoMessage

func (*ConstantSampler) ProtoMessage()

func (*ConstantSampler) ProtoReflect

func (x *ConstantSampler) ProtoReflect() protoreflect.Message

func (*ConstantSampler) Reset

func (x *ConstantSampler) Reset()

func (*ConstantSampler) String

func (x *ConstantSampler) String() string

type ConstantSampler_ConstantDecision

type ConstantSampler_ConstantDecision int32

How spans should be sampled: - Always off - Always on - Always follow the parent Span's decision (off if no parent).

const (
	ConstantSampler_ALWAYS_OFF    ConstantSampler_ConstantDecision = 0
	ConstantSampler_ALWAYS_ON     ConstantSampler_ConstantDecision = 1
	ConstantSampler_ALWAYS_PARENT ConstantSampler_ConstantDecision = 2
)

func (ConstantSampler_ConstantDecision) Descriptor

func (ConstantSampler_ConstantDecision) Descriptor() protoreflect.EnumDescriptor

func (ConstantSampler_ConstantDecision) Enum

func (x ConstantSampler_ConstantDecision) Enum() *ConstantSampler_ConstantDecision

func (ConstantSampler_ConstantDecision) EnumDescriptor

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

Deprecated: Use ConstantSampler_ConstantDecision.Descriptor instead.

func (ConstantSampler_ConstantDecision) Number

func (x ConstantSampler_ConstantDecision) Number() protoreflect.EnumNumber

func (ConstantSampler_ConstantDecision) String

func (x ConstantSampler_ConstantDecision) String() string

func (ConstantSampler_ConstantDecision) Type

func (ConstantSampler_ConstantDecision) Type() protoreflect.EnumType

type Module

type Module struct {

	// TODO: document the meaning of this field.
	// For example: main binary, kernel modules, and dynamic libraries
	// such as libc.so, sharedlib.so.
	Module *TruncatableString `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// A unique identifier for the module, usually a hash of its
	// contents.
	BuildId *TruncatableString `protobuf:"bytes,2,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

A description of a binary module.

func (*Module) Descriptor

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

Deprecated: Use Module.ProtoReflect.Descriptor instead.

func (*Module) GetBuildId

func (x *Module) GetBuildId() *TruncatableString

func (*Module) GetModule

func (x *Module) GetModule() *TruncatableString

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) ProtoReflect

func (x *Module) ProtoReflect() protoreflect.Message

func (*Module) Reset

func (x *Module) Reset()

func (*Module) String

func (x *Module) String() string

type ProbabilitySampler

type ProbabilitySampler struct {

	// The desired probability of sampling. Must be within [0.0, 1.0].
	SamplingProbability float64 `protobuf:"fixed64,1,opt,name=samplingProbability,proto3" json:"samplingProbability,omitempty"`
	// contains filtered or unexported fields
}

Sampler that tries to uniformly sample traces with a given probability. The probability of sampling a trace is equal to that of the specified probability.

func (*ProbabilitySampler) Descriptor

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

Deprecated: Use ProbabilitySampler.ProtoReflect.Descriptor instead.

func (*ProbabilitySampler) GetSamplingProbability

func (x *ProbabilitySampler) GetSamplingProbability() float64

func (*ProbabilitySampler) ProtoMessage

func (*ProbabilitySampler) ProtoMessage()

func (*ProbabilitySampler) ProtoReflect

func (x *ProbabilitySampler) ProtoReflect() protoreflect.Message

func (*ProbabilitySampler) Reset

func (x *ProbabilitySampler) Reset()

func (*ProbabilitySampler) String

func (x *ProbabilitySampler) String() string

type RateLimitingSampler

type RateLimitingSampler struct {

	// Rate per second.
	Qps int64 `protobuf:"varint,1,opt,name=qps,proto3" json:"qps,omitempty"`
	// contains filtered or unexported fields
}

Sampler that tries to sample with a rate per time window.

func (*RateLimitingSampler) Descriptor

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

Deprecated: Use RateLimitingSampler.ProtoReflect.Descriptor instead.

func (*RateLimitingSampler) GetQps

func (x *RateLimitingSampler) GetQps() int64

func (*RateLimitingSampler) ProtoMessage

func (*RateLimitingSampler) ProtoMessage()

func (*RateLimitingSampler) ProtoReflect

func (x *RateLimitingSampler) ProtoReflect() protoreflect.Message

func (*RateLimitingSampler) Reset

func (x *RateLimitingSampler) Reset()

func (*RateLimitingSampler) String

func (x *RateLimitingSampler) String() string

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 *Span_Tracestate `protobuf:"bytes,15,opt,name=tracestate,proto3" json:"tracestate,omitempty"`

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

	Name *TruncatableString `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`

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

	StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`

	EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`

	Attributes *Span_Attributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`

	StackTrace *StackTrace `protobuf:"bytes,8,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`

	TimeEvents *Span_TimeEvents `protobuf:"bytes,9,opt,name=time_events,json=timeEvents,proto3" json:"time_events,omitempty"`

	Links *Span_Links `protobuf:"bytes,10,opt,name=links,proto3" json:"links,omitempty"`

	Status *Status `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`

	Resource *v1.Resource `protobuf:"bytes,16,opt,name=resource,proto3" json:"resource,omitempty"`

	SameProcessAsParentSpan *wrappers.BoolValue "" /* 137 byte string literal not displayed */

	ChildSpanCount *wrappers.UInt32Value `protobuf:"bytes,13,opt,name=child_span_count,json=childSpanCount,proto3" json:"child_span_count,omitempty"`

}

A 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 id is 17. TODO(bdrutu): Add an example.

func (*Span) Descriptor

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

Deprecated: Use Span.ProtoReflect.Descriptor instead.

func (*Span) GetAttributes

func (x *Span) GetAttributes() *Span_Attributes

func (*Span) GetChildSpanCount

func (x *Span) GetChildSpanCount() *wrappers.UInt32Value

func (*Span) GetEndTime

func (x *Span) GetEndTime() *timestamp.Timestamp

func (*Span) GetKind

func (x *Span) GetKind() Span_SpanKind
func (x *Span) GetLinks() *Span_Links

func (*Span) GetName

func (x *Span) GetName() *TruncatableString

func (*Span) GetParentSpanId

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

func (*Span) GetResource

func (x *Span) GetResource() *v1.Resource

func (*Span) GetSameProcessAsParentSpan

func (x *Span) GetSameProcessAsParentSpan() *wrappers.BoolValue

func (*Span) GetSpanId

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

func (*Span) GetStackTrace

func (x *Span) GetStackTrace() *StackTrace

func (*Span) GetStartTime

func (x *Span) GetStartTime() *timestamp.Timestamp

func (*Span) GetStatus

func (x *Span) GetStatus() *Status

func (*Span) GetTimeEvents

func (x *Span) GetTimeEvents() *Span_TimeEvents

func (*Span) GetTraceId

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

func (*Span) GetTracestate

func (x *Span) GetTracestate() *Span_Tracestate

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) ProtoReflect

func (x *Span) ProtoReflect() protoreflect.Message

func (*Span) Reset

func (x *Span) Reset()

func (*Span) String

func (x *Span) String() string

type Span_Attributes

type Span_Attributes struct {
	AttributeMap map[string]*AttributeValue "" /* 185 byte string literal not displayed */

	DroppedAttributesCount int32 "" /* 130 byte string literal not displayed */

}

A set of attributes, each with a key and a value.

func (*Span_Attributes) Descriptor

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

Deprecated: Use Span_Attributes.ProtoReflect.Descriptor instead.

func (*Span_Attributes) GetAttributeMap

func (x *Span_Attributes) GetAttributeMap() map[string]*AttributeValue

func (*Span_Attributes) GetDroppedAttributesCount

func (x *Span_Attributes) GetDroppedAttributesCount() int32

func (*Span_Attributes) ProtoMessage

func (*Span_Attributes) ProtoMessage()

func (*Span_Attributes) ProtoReflect

func (x *Span_Attributes) ProtoReflect() protoreflect.Message

func (*Span_Attributes) Reset

func (x *Span_Attributes) Reset()

func (*Span_Attributes) String

func (x *Span_Attributes) String() string
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 relationship of the current span relative to the linked span.
	Type Span_Link_Type `protobuf:"varint,3,opt,name=type,proto3,enum=opencensus.proto.trace.v1.Span_Link_Type" json:"type,omitempty"`
	// A set of attributes on the link.
	Attributes *Span_Attributes `protobuf:"bytes,4,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// The Tracestate associated with the link.
	Tracestate *Span_Tracestate `protobuf:"bytes,5,opt,name=tracestate,proto3" json:"tracestate,omitempty"`
	// contains filtered or unexported fields
}

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)

Deprecated: Use Span_Link.ProtoReflect.Descriptor instead.

func (*Span_Link) GetAttributes

func (x *Span_Link) GetAttributes() *Span_Attributes

func (*Span_Link) GetSpanId

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

func (*Span_Link) GetTraceId

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

func (*Span_Link) GetTracestate

func (x *Span_Link) GetTracestate() *Span_Tracestate

func (*Span_Link) GetType

func (x *Span_Link) GetType() Span_Link_Type

func (*Span_Link) ProtoMessage

func (*Span_Link) ProtoMessage()

func (*Span_Link) ProtoReflect

func (x *Span_Link) ProtoReflect() protoreflect.Message

func (*Span_Link) Reset

func (x *Span_Link) Reset()

func (*Span_Link) String

func (x *Span_Link) String() string
type Span_Link_Type int32

The relationship of the current span relative to the linked span: child, parent, or unspecified.

const (
	// The relationship of the two spans is unknown, or known but other
	// than parent-child.
	Span_Link_TYPE_UNSPECIFIED Span_Link_Type = 0
	// The linked span is a child of the current span.
	Span_Link_CHILD_LINKED_SPAN Span_Link_Type = 1
	// The linked span is a parent of the current span.
	Span_Link_PARENT_LINKED_SPAN Span_Link_Type = 2
)
func (Span_Link_Type) Descriptor() protoreflect.EnumDescriptor
func (x Span_Link_Type) Enum() *Span_Link_Type
func (Span_Link_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Span_Link_Type.Descriptor instead.

func (x Span_Link_Type) Number() protoreflect.EnumNumber
func (x Span_Link_Type) String() string
func (Span_Link_Type) Type() protoreflect.EnumType
type Span_Links struct {

	// A collection of links.
	Link []*Span_Link `protobuf:"bytes,1,rep,name=link,proto3" json:"link,omitempty"`
	// The number of dropped links after the maximum size was enforced. If
	// this value is 0, then no links were dropped.
	DroppedLinksCount int32 `protobuf:"varint,2,opt,name=dropped_links_count,json=droppedLinksCount,proto3" json:"dropped_links_count,omitempty"`
	// contains filtered or unexported fields
}

A collection of links, which are references from this span to a span in the same or different trace.

func (*Span_Links) Descriptor

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

Deprecated: Use Span_Links.ProtoReflect.Descriptor instead.

func (*Span_Links) GetDroppedLinksCount

func (x *Span_Links) GetDroppedLinksCount() int32
func (x *Span_Links) GetLink() []*Span_Link

func (*Span_Links) ProtoMessage

func (*Span_Links) ProtoMessage()

func (*Span_Links) ProtoReflect

func (x *Span_Links) ProtoReflect() protoreflect.Message

func (*Span_Links) Reset

func (x *Span_Links) Reset()

func (*Span_Links) String

func (x *Span_Links) String() string

type Span_SpanKind

type Span_SpanKind int32

Type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.

const (
	// Unspecified.
	Span_SPAN_KIND_UNSPECIFIED Span_SpanKind = 0
	// Indicates that the span covers server-side handling of an RPC or other
	// remote network request.
	Span_SERVER Span_SpanKind = 1
	// Indicates that the span covers the client-side wrapper around an RPC or
	// other remote request.
	Span_CLIENT Span_SpanKind = 2
)

func (Span_SpanKind) Descriptor

func (Span_SpanKind) Descriptor() protoreflect.EnumDescriptor

func (Span_SpanKind) Enum

func (x Span_SpanKind) Enum() *Span_SpanKind

func (Span_SpanKind) EnumDescriptor

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

Deprecated: Use Span_SpanKind.Descriptor instead.

func (Span_SpanKind) Number

func (x Span_SpanKind) Number() protoreflect.EnumNumber

func (Span_SpanKind) String

func (x Span_SpanKind) String() string

func (Span_SpanKind) Type

func (Span_SpanKind) Type() protoreflect.EnumType

type Span_TimeEvent

type Span_TimeEvent struct {

	// The time the event occurred.
	Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	// A `TimeEvent` can contain either an `Annotation` object or a
	// `MessageEvent` object, but not both.
	//
	// Types that are assignable to Value:
	//	*Span_TimeEvent_Annotation_
	//	*Span_TimeEvent_MessageEvent_
	Value isSpan_TimeEvent_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A time-stamped annotation or message event in the Span.

func (*Span_TimeEvent) Descriptor

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

Deprecated: Use Span_TimeEvent.ProtoReflect.Descriptor instead.

func (*Span_TimeEvent) GetAnnotation

func (x *Span_TimeEvent) GetAnnotation() *Span_TimeEvent_Annotation

func (*Span_TimeEvent) GetMessageEvent

func (x *Span_TimeEvent) GetMessageEvent() *Span_TimeEvent_MessageEvent

func (*Span_TimeEvent) GetTime

func (x *Span_TimeEvent) GetTime() *timestamp.Timestamp

func (*Span_TimeEvent) GetValue

func (m *Span_TimeEvent) GetValue() isSpan_TimeEvent_Value

func (*Span_TimeEvent) ProtoMessage

func (*Span_TimeEvent) ProtoMessage()

func (*Span_TimeEvent) ProtoReflect

func (x *Span_TimeEvent) ProtoReflect() protoreflect.Message

func (*Span_TimeEvent) Reset

func (x *Span_TimeEvent) Reset()

func (*Span_TimeEvent) String

func (x *Span_TimeEvent) String() string

type Span_TimeEvent_Annotation

type Span_TimeEvent_Annotation struct {

	// A user-supplied message describing the event.
	Description *TruncatableString `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// A set of attributes on the annotation.
	Attributes *Span_Attributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

A text annotation with a set of attributes.

func (*Span_TimeEvent_Annotation) Descriptor

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

Deprecated: Use Span_TimeEvent_Annotation.ProtoReflect.Descriptor instead.

func (*Span_TimeEvent_Annotation) GetAttributes

func (x *Span_TimeEvent_Annotation) GetAttributes() *Span_Attributes

func (*Span_TimeEvent_Annotation) GetDescription

func (x *Span_TimeEvent_Annotation) GetDescription() *TruncatableString

func (*Span_TimeEvent_Annotation) ProtoMessage

func (*Span_TimeEvent_Annotation) ProtoMessage()

func (*Span_TimeEvent_Annotation) ProtoReflect

func (x *Span_TimeEvent_Annotation) ProtoReflect() protoreflect.Message

func (*Span_TimeEvent_Annotation) Reset

func (x *Span_TimeEvent_Annotation) Reset()

func (*Span_TimeEvent_Annotation) String

func (x *Span_TimeEvent_Annotation) String() string

type Span_TimeEvent_Annotation_

type Span_TimeEvent_Annotation_ struct {
	// A text annotation with a set of attributes.
	Annotation *Span_TimeEvent_Annotation `protobuf:"bytes,2,opt,name=annotation,proto3,oneof"`
}

type Span_TimeEvent_MessageEvent

type Span_TimeEvent_MessageEvent struct {

	// The type of MessageEvent. Indicates whether the message was sent or
	// received.
	Type Span_TimeEvent_MessageEvent_Type `protobuf:"varint,1,opt,name=type,proto3,enum=opencensus.proto.trace.v1.Span_TimeEvent_MessageEvent_Type" json:"type,omitempty"`
	// An identifier for the MessageEvent's message that can be used to match
	// SENT and RECEIVED MessageEvents. For example, this field could
	// represent a sequence ID for a streaming RPC. It is recommended to be
	// unique within a Span.
	Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// The number of uncompressed bytes sent or received.
	UncompressedSize uint64 `protobuf:"varint,3,opt,name=uncompressed_size,json=uncompressedSize,proto3" json:"uncompressed_size,omitempty"`
	// The number of compressed bytes sent or received. If zero, assumed to
	// be the same size as uncompressed.
	CompressedSize uint64 `protobuf:"varint,4,opt,name=compressed_size,json=compressedSize,proto3" json:"compressed_size,omitempty"`
	// contains filtered or unexported fields
}

An event describing a message sent/received between Spans.

func (*Span_TimeEvent_MessageEvent) Descriptor

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

Deprecated: Use Span_TimeEvent_MessageEvent.ProtoReflect.Descriptor instead.

func (*Span_TimeEvent_MessageEvent) GetCompressedSize

func (x *Span_TimeEvent_MessageEvent) GetCompressedSize() uint64

func (*Span_TimeEvent_MessageEvent) GetId

func (x *Span_TimeEvent_MessageEvent) GetId() uint64

func (*Span_TimeEvent_MessageEvent) GetType

func (x *Span_TimeEvent_MessageEvent) GetType() Span_TimeEvent_MessageEvent_Type

func (*Span_TimeEvent_MessageEvent) GetUncompressedSize

func (x *Span_TimeEvent_MessageEvent) GetUncompressedSize() uint64

func (*Span_TimeEvent_MessageEvent) ProtoMessage

func (*Span_TimeEvent_MessageEvent) ProtoMessage()

func (*Span_TimeEvent_MessageEvent) ProtoReflect

func (x *Span_TimeEvent_MessageEvent) ProtoReflect() protoreflect.Message

func (*Span_TimeEvent_MessageEvent) Reset

func (x *Span_TimeEvent_MessageEvent) Reset()

func (*Span_TimeEvent_MessageEvent) String

func (x *Span_TimeEvent_MessageEvent) String() string

type Span_TimeEvent_MessageEvent_

type Span_TimeEvent_MessageEvent_ struct {
	// An event describing a message sent/received between Spans.
	MessageEvent *Span_TimeEvent_MessageEvent `protobuf:"bytes,3,opt,name=message_event,json=messageEvent,proto3,oneof"`
}

type Span_TimeEvent_MessageEvent_Type

type Span_TimeEvent_MessageEvent_Type int32

Indicates whether the message was sent or received.

const (
	// Unknown event type.
	Span_TimeEvent_MessageEvent_TYPE_UNSPECIFIED Span_TimeEvent_MessageEvent_Type = 0
	// Indicates a sent message.
	Span_TimeEvent_MessageEvent_SENT Span_TimeEvent_MessageEvent_Type = 1
	// Indicates a received message.
	Span_TimeEvent_MessageEvent_RECEIVED Span_TimeEvent_MessageEvent_Type = 2
)

func (Span_TimeEvent_MessageEvent_Type) Descriptor

func (Span_TimeEvent_MessageEvent_Type) Descriptor() protoreflect.EnumDescriptor

func (Span_TimeEvent_MessageEvent_Type) Enum

func (x Span_TimeEvent_MessageEvent_Type) Enum() *Span_TimeEvent_MessageEvent_Type

func (Span_TimeEvent_MessageEvent_Type) EnumDescriptor

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

Deprecated: Use Span_TimeEvent_MessageEvent_Type.Descriptor instead.

func (Span_TimeEvent_MessageEvent_Type) Number

func (x Span_TimeEvent_MessageEvent_Type) Number() protoreflect.EnumNumber

func (Span_TimeEvent_MessageEvent_Type) String

func (x Span_TimeEvent_MessageEvent_Type) String() string

func (Span_TimeEvent_MessageEvent_Type) Type

func (Span_TimeEvent_MessageEvent_Type) Type() protoreflect.EnumType

type Span_TimeEvents

type Span_TimeEvents struct {
	TimeEvent []*Span_TimeEvent `protobuf:"bytes,1,rep,name=time_event,json=timeEvent,proto3" json:"time_event,omitempty"`

	DroppedAnnotationsCount int32 "" /* 133 byte string literal not displayed */

	DroppedMessageEventsCount int32 "" /* 141 byte string literal not displayed */

}

A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation on the span, consisting of either user-supplied key-value pairs, or details of a message sent/received between Spans.

func (*Span_TimeEvents) Descriptor

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

Deprecated: Use Span_TimeEvents.ProtoReflect.Descriptor instead.

func (*Span_TimeEvents) GetDroppedAnnotationsCount

func (x *Span_TimeEvents) GetDroppedAnnotationsCount() int32

func (*Span_TimeEvents) GetDroppedMessageEventsCount

func (x *Span_TimeEvents) GetDroppedMessageEventsCount() int32

func (*Span_TimeEvents) GetTimeEvent

func (x *Span_TimeEvents) GetTimeEvent() []*Span_TimeEvent

func (*Span_TimeEvents) ProtoMessage

func (*Span_TimeEvents) ProtoMessage()

func (*Span_TimeEvents) ProtoReflect

func (x *Span_TimeEvents) ProtoReflect() protoreflect.Message

func (*Span_TimeEvents) Reset

func (x *Span_TimeEvents) Reset()

func (*Span_TimeEvents) String

func (x *Span_TimeEvents) String() string

type Span_Tracestate

type Span_Tracestate struct {

	// A list of entries that represent the Tracestate.
	Entries []*Span_Tracestate_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

This field conveys information about request position in multiple distributed tracing graphs. It is a list of Tracestate.Entry with a maximum of 32 members in the list.

See the https://github.com/w3c/distributed-tracing for more details about this field.

func (*Span_Tracestate) Descriptor

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

Deprecated: Use Span_Tracestate.ProtoReflect.Descriptor instead.

func (*Span_Tracestate) GetEntries

func (x *Span_Tracestate) GetEntries() []*Span_Tracestate_Entry

func (*Span_Tracestate) ProtoMessage

func (*Span_Tracestate) ProtoMessage()

func (*Span_Tracestate) ProtoReflect

func (x *Span_Tracestate) ProtoReflect() protoreflect.Message

func (*Span_Tracestate) Reset

func (x *Span_Tracestate) Reset()

func (*Span_Tracestate) String

func (x *Span_Tracestate) String() string

type Span_Tracestate_Entry

type Span_Tracestate_Entry struct {

	// The key must begin with a lowercase letter, and can only contain
	// lowercase letters 'a'-'z', digits '0'-'9', underscores '_', dashes
	// '-', asterisks '*', and forward slashes '/'.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The value is opaque string up to 256 characters printable ASCII
	// RFC0020 characters (i.e., the range 0x20 to 0x7E) except ',' and '='.
	// Note that this also excludes tabs, newlines, carriage returns, etc.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Span_Tracestate_Entry) Descriptor

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

Deprecated: Use Span_Tracestate_Entry.ProtoReflect.Descriptor instead.

func (*Span_Tracestate_Entry) GetKey

func (x *Span_Tracestate_Entry) GetKey() string

func (*Span_Tracestate_Entry) GetValue

func (x *Span_Tracestate_Entry) GetValue() string

func (*Span_Tracestate_Entry) ProtoMessage

func (*Span_Tracestate_Entry) ProtoMessage()

func (*Span_Tracestate_Entry) ProtoReflect

func (x *Span_Tracestate_Entry) ProtoReflect() protoreflect.Message

func (*Span_Tracestate_Entry) Reset

func (x *Span_Tracestate_Entry) Reset()

func (*Span_Tracestate_Entry) String

func (x *Span_Tracestate_Entry) String() string

type StackTrace

type StackTrace struct {

	// Stack frames in this stack trace.
	StackFrames *StackTrace_StackFrames `protobuf:"bytes,1,opt,name=stack_frames,json=stackFrames,proto3" json:"stack_frames,omitempty"`
	// The hash ID is used to conserve network bandwidth for duplicate
	// stack traces within a single trace.
	//
	// Often multiple spans will have identical stack traces.
	// The first occurrence of a stack trace should contain both
	// `stack_frames` and a value in `stack_trace_hash_id`.
	//
	// Subsequent spans within the same request can refer
	// to that stack trace by setting only `stack_trace_hash_id`.
	//
	// TODO: describe how to deal with the case where stack_trace_hash_id is
	// zero because it was not set.
	StackTraceHashId uint64 `protobuf:"varint,2,opt,name=stack_trace_hash_id,json=stackTraceHashId,proto3" json:"stack_trace_hash_id,omitempty"`
	// contains filtered or unexported fields
}

The call stack which originated this span.

func (*StackTrace) Descriptor

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

Deprecated: Use StackTrace.ProtoReflect.Descriptor instead.

func (*StackTrace) GetStackFrames

func (x *StackTrace) GetStackFrames() *StackTrace_StackFrames

func (*StackTrace) GetStackTraceHashId

func (x *StackTrace) GetStackTraceHashId() uint64

func (*StackTrace) ProtoMessage

func (*StackTrace) ProtoMessage()

func (*StackTrace) ProtoReflect

func (x *StackTrace) ProtoReflect() protoreflect.Message

func (*StackTrace) Reset

func (x *StackTrace) Reset()

func (*StackTrace) String

func (x *StackTrace) String() string

type StackTrace_StackFrame

type StackTrace_StackFrame struct {

	// The fully-qualified name that uniquely identifies the function or
	// method that is active in this frame.
	FunctionName *TruncatableString `protobuf:"bytes,1,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"`
	// An un-mangled function name, if `function_name` is
	// [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
	// be fully qualified.
	OriginalFunctionName *TruncatableString `protobuf:"bytes,2,opt,name=original_function_name,json=originalFunctionName,proto3" json:"original_function_name,omitempty"`
	// The name of the source file where the function call appears.
	FileName *TruncatableString `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	// The line number in `file_name` where the function call appears.
	LineNumber int64 `protobuf:"varint,4,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
	// The column number where the function call appears, if available.
	// This is important in JavaScript because of its anonymous functions.
	ColumnNumber int64 `protobuf:"varint,5,opt,name=column_number,json=columnNumber,proto3" json:"column_number,omitempty"`
	// The binary module from where the code was loaded.
	LoadModule *Module `protobuf:"bytes,6,opt,name=load_module,json=loadModule,proto3" json:"load_module,omitempty"`
	// The version of the deployed source code.
	SourceVersion *TruncatableString `protobuf:"bytes,7,opt,name=source_version,json=sourceVersion,proto3" json:"source_version,omitempty"`
	// contains filtered or unexported fields
}

A single stack frame in a stack trace.

func (*StackTrace_StackFrame) Descriptor

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

Deprecated: Use StackTrace_StackFrame.ProtoReflect.Descriptor instead.

func (*StackTrace_StackFrame) GetColumnNumber

func (x *StackTrace_StackFrame) GetColumnNumber() int64

func (*StackTrace_StackFrame) GetFileName

func (x *StackTrace_StackFrame) GetFileName() *TruncatableString

func (*StackTrace_StackFrame) GetFunctionName

func (x *StackTrace_StackFrame) GetFunctionName() *TruncatableString

func (*StackTrace_StackFrame) GetLineNumber

func (x *StackTrace_StackFrame) GetLineNumber() int64

func (*StackTrace_StackFrame) GetLoadModule

func (x *StackTrace_StackFrame) GetLoadModule() *Module

func (*StackTrace_StackFrame) GetOriginalFunctionName

func (x *StackTrace_StackFrame) GetOriginalFunctionName() *TruncatableString

func (*StackTrace_StackFrame) GetSourceVersion

func (x *StackTrace_StackFrame) GetSourceVersion() *TruncatableString

func (*StackTrace_StackFrame) ProtoMessage

func (*StackTrace_StackFrame) ProtoMessage()

func (*StackTrace_StackFrame) ProtoReflect

func (x *StackTrace_StackFrame) ProtoReflect() protoreflect.Message

func (*StackTrace_StackFrame) Reset

func (x *StackTrace_StackFrame) Reset()

func (*StackTrace_StackFrame) String

func (x *StackTrace_StackFrame) String() string

type StackTrace_StackFrames

type StackTrace_StackFrames struct {

	// Stack frames in this call stack.
	Frame []*StackTrace_StackFrame `protobuf:"bytes,1,rep,name=frame,proto3" json:"frame,omitempty"`
	// The number of stack frames that were dropped because there
	// were too many stack frames.
	// If this value is 0, then no stack frames were dropped.
	DroppedFramesCount int32 `protobuf:"varint,2,opt,name=dropped_frames_count,json=droppedFramesCount,proto3" json:"dropped_frames_count,omitempty"`
	// contains filtered or unexported fields
}

A collection of stack frames, which can be truncated.

func (*StackTrace_StackFrames) Descriptor

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

Deprecated: Use StackTrace_StackFrames.ProtoReflect.Descriptor instead.

func (*StackTrace_StackFrames) GetDroppedFramesCount

func (x *StackTrace_StackFrames) GetDroppedFramesCount() int32

func (*StackTrace_StackFrames) GetFrame

func (x *StackTrace_StackFrames) GetFrame() []*StackTrace_StackFrame

func (*StackTrace_StackFrames) ProtoMessage

func (*StackTrace_StackFrames) ProtoMessage()

func (*StackTrace_StackFrames) ProtoReflect

func (x *StackTrace_StackFrames) ProtoReflect() protoreflect.Message

func (*StackTrace_StackFrames) Reset

func (x *StackTrace_StackFrames) Reset()

func (*StackTrace_StackFrames) String

func (x *StackTrace_StackFrames) 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 int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// A developer-facing error message, which should be in English.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. This proto's fields are a subset of those of [google.rpc.Status](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto), which is used by [gRPC](https://github.com/grpc).

func (*Status) Descriptor

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetCode

func (x *Status) GetCode() int32

func (*Status) GetMessage

func (x *Status) GetMessage() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

func (x *Status) ProtoReflect() protoreflect.Message

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type TraceConfig

type TraceConfig struct {
	Sampler isTraceConfig_Sampler `protobuf_oneof:"sampler"`

	MaxNumberOfAttributes int64 "" /* 129 byte string literal not displayed */

	MaxNumberOfAnnotations int64 "" /* 132 byte string literal not displayed */

	MaxNumberOfMessageEvents int64 "" /* 140 byte string literal not displayed */

	MaxNumberOfLinks int64 `protobuf:"varint,7,opt,name=max_number_of_links,json=maxNumberOfLinks,proto3" json:"max_number_of_links,omitempty"`

}

Global configuration of the trace service. All fields must be specified, or the default (zero) values will be used for each type.

func (*TraceConfig) Descriptor

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

Deprecated: Use TraceConfig.ProtoReflect.Descriptor instead.

func (*TraceConfig) GetConstantSampler

func (x *TraceConfig) GetConstantSampler() *ConstantSampler

func (*TraceConfig) GetMaxNumberOfAnnotations

func (x *TraceConfig) GetMaxNumberOfAnnotations() int64

func (*TraceConfig) GetMaxNumberOfAttributes

func (x *TraceConfig) GetMaxNumberOfAttributes() int64
func (x *TraceConfig) GetMaxNumberOfLinks() int64

func (*TraceConfig) GetMaxNumberOfMessageEvents

func (x *TraceConfig) GetMaxNumberOfMessageEvents() int64

func (*TraceConfig) GetProbabilitySampler

func (x *TraceConfig) GetProbabilitySampler() *ProbabilitySampler

func (*TraceConfig) GetRateLimitingSampler

func (x *TraceConfig) GetRateLimitingSampler() *RateLimitingSampler

func (*TraceConfig) GetSampler

func (m *TraceConfig) GetSampler() isTraceConfig_Sampler

func (*TraceConfig) ProtoMessage

func (*TraceConfig) ProtoMessage()

func (*TraceConfig) ProtoReflect

func (x *TraceConfig) ProtoReflect() protoreflect.Message

func (*TraceConfig) Reset

func (x *TraceConfig) Reset()

func (*TraceConfig) String

func (x *TraceConfig) String() string

type TraceConfig_ConstantSampler

type TraceConfig_ConstantSampler struct {
	ConstantSampler *ConstantSampler `protobuf:"bytes,2,opt,name=constant_sampler,json=constantSampler,proto3,oneof"`
}

type TraceConfig_ProbabilitySampler

type TraceConfig_ProbabilitySampler struct {
	ProbabilitySampler *ProbabilitySampler `protobuf:"bytes,1,opt,name=probability_sampler,json=probabilitySampler,proto3,oneof"`
}

type TraceConfig_RateLimitingSampler

type TraceConfig_RateLimitingSampler struct {
	RateLimitingSampler *RateLimitingSampler `protobuf:"bytes,3,opt,name=rate_limiting_sampler,json=rateLimitingSampler,proto3,oneof"`
}

type TruncatableString

type TruncatableString struct {

	// The shortened string. For example, if the original string was 500 bytes long and
	// the limit of the string was 128 bytes, then this value contains the first 128
	// bytes of the 500-byte string. Note that truncation always happens on a
	// character boundary, to ensure that a truncated string is still valid UTF-8.
	// Because it may contain multi-byte characters, the size of the truncated string
	// may be less than the truncation limit.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// The number of bytes removed from the original string. If this
	// value is 0, then the string was not shortened.
	TruncatedByteCount int32 `protobuf:"varint,2,opt,name=truncated_byte_count,json=truncatedByteCount,proto3" json:"truncated_byte_count,omitempty"`
	// contains filtered or unexported fields
}

A string that might be shortened to a specified length.

func (*TruncatableString) Descriptor

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

Deprecated: Use TruncatableString.ProtoReflect.Descriptor instead.

func (*TruncatableString) GetTruncatedByteCount

func (x *TruncatableString) GetTruncatedByteCount() int32

func (*TruncatableString) GetValue

func (x *TruncatableString) GetValue() string

func (*TruncatableString) ProtoMessage

func (*TruncatableString) ProtoMessage()

func (*TruncatableString) ProtoReflect

func (x *TruncatableString) ProtoReflect() protoreflect.Message

func (*TruncatableString) Reset

func (x *TruncatableString) Reset()

func (*TruncatableString) String

func (x *TruncatableString) String() string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier