v1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 7 Imported by: 161

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_opencensus_proto_trace_v1_trace_config_proto protoreflect.FileDescriptor
View Source
var File_opencensus_proto_trace_v1_trace_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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 deprecated

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

Deprecated: Use AttributeValue.ProtoReflect.Descriptor instead.

func (*AttributeValue) GetBoolValue

func (x *AttributeValue) GetBoolValue() bool

func (*AttributeValue) GetDoubleValue added in v0.0.2

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 added in v0.3.0

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 added in v0.0.2

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 */
	// contains filtered or unexported fields
}

Sampler that always makes a constant decision on span sampling.

func (*ConstantSampler) Descriptor deprecated

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

Deprecated: Use ConstantSampler.ProtoReflect.Descriptor instead.

func (*ConstantSampler) GetDecision

func (*ConstantSampler) ProtoMessage

func (*ConstantSampler) ProtoMessage()

func (*ConstantSampler) ProtoReflect added in v0.3.0

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

func (*ConstantSampler) Reset

func (x *ConstantSampler) Reset()

func (*ConstantSampler) String

func (x *ConstantSampler) String() string

type ConstantSampler_ConstantDecision added in v0.2.0

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 added in v0.3.0

func (ConstantSampler_ConstantDecision) Enum added in v0.3.0

func (ConstantSampler_ConstantDecision) EnumDescriptor deprecated added in v0.2.0

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

Deprecated: Use ConstantSampler_ConstantDecision.Descriptor instead.

func (ConstantSampler_ConstantDecision) Number added in v0.3.0

func (ConstantSampler_ConstantDecision) String added in v0.2.0

func (ConstantSampler_ConstantDecision) Type added in v0.3.0

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 deprecated

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 added in v0.3.0

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 deprecated

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 added in v0.3.0

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 deprecated

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 added in v0.3.0

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 {

	// 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"`
	// The Tracestate on the span.
	Tracestate *Span_Tracestate `protobuf:"bytes,15,opt,name=tracestate,proto3" json:"tracestate,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,3,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 *TruncatableString `protobuf:"bytes,4,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,14,opt,name=kind,proto3,enum=opencensus.proto.trace.v1.Span_SpanKind" json:"kind,omitempty"`
	// The start time of the span. On the client side, this is the time kept by
	// the local machine where the span execution starts. On the server side, this
	// is the time when the server's application handler starts running.
	//
	// This field is semantically required. When not set on receive -
	// receiver should set it to the value of end_time field if it was
	// set. Or to the current time if neither was set. It is important to
	// keep end_time > start_time for consistency.
	//
	// This field is required.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The end time of the span. On the client side, this is the time kept by
	// the local machine where the span execution ends. On the server side, this
	// is the time when the server application handler stops running.
	//
	// This field is semantically required. When not set on receive -
	// receiver should set it to start_time value. It is important to
	// keep end_time > start_time for consistency.
	//
	// This field is required.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// A set of attributes on the span.
	Attributes *Span_Attributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// A stack trace captured at the start of the span.
	StackTrace *StackTrace `protobuf:"bytes,8,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
	// The included time events.
	TimeEvents *Span_TimeEvents `protobuf:"bytes,9,opt,name=time_events,json=timeEvents,proto3" json:"time_events,omitempty"`
	// The included links.
	Links *Span_Links `protobuf:"bytes,10,opt,name=links,proto3" json:"links,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,11,opt,name=status,proto3" json:"status,omitempty"`
	// An optional resource that is associated with this span. If not set, this span
	// should be part of a batch that does include the resource information, unless resource
	// information is unknown.
	Resource *v1.Resource `protobuf:"bytes,16,opt,name=resource,proto3" json:"resource,omitempty"`
	// A highly recommended but not required flag that identifies when a
	// trace crosses a process boundary. True when the parent_span belongs
	// to the same process as the current span. This flag is most commonly
	// used to indicate the need to adjust time as clocks in different
	// processes may not be synchronized.
	SameProcessAsParentSpan *wrapperspb.BoolValue `` /* 137-byte string literal not displayed */
	// An optional number of child spans that were generated while this span
	// was active. If set, allows an implementation to detect missing child spans.
	ChildSpanCount *wrapperspb.UInt32Value `protobuf:"bytes,13,opt,name=child_span_count,json=childSpanCount,proto3" json:"child_span_count,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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() *wrapperspb.UInt32Value

func (*Span) GetEndTime

func (x *Span) GetEndTime() *timestamppb.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 added in v0.2.0

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

func (*Span) GetSameProcessAsParentSpan

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

func (*Span) GetSpanId

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

func (*Span) GetStackTrace

func (x *Span) GetStackTrace() *StackTrace

func (*Span) GetStartTime

func (x *Span) GetStartTime() *timestamppb.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 added in v0.3.0

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 {

	// The set of attributes. 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 as tags using 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
	AttributeMap map[string]*AttributeValue `` /* 185-byte string literal not displayed */
	// 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 int32 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*Span_Attributes) Descriptor deprecated

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 added in v0.3.0

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 deprecated

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 added in v0.2.1

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 added in v0.3.0

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 (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) String() string
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 deprecated

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 added in v0.3.0

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 added in v0.3.0

func (Span_SpanKind) Enum added in v0.3.0

func (x Span_SpanKind) Enum() *Span_SpanKind

func (Span_SpanKind) EnumDescriptor deprecated

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

Deprecated: Use Span_SpanKind.Descriptor instead.

func (Span_SpanKind) Number added in v0.3.0

func (Span_SpanKind) String

func (x Span_SpanKind) String() string

func (Span_SpanKind) Type added in v0.3.0

type Span_TimeEvent

type Span_TimeEvent struct {

	// The time the event occurred.
	Time *timestamppb.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 deprecated

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() *timestamppb.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 added in v0.3.0

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 deprecated

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 added in v0.3.0

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 `` /* 126-byte string literal not displayed */
	// 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 deprecated

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 (*Span_TimeEvent_MessageEvent) GetType

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 added in v0.3.0

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 added in v0.3.0

func (Span_TimeEvent_MessageEvent_Type) Enum added in v0.3.0

func (Span_TimeEvent_MessageEvent_Type) EnumDescriptor deprecated

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

Deprecated: Use Span_TimeEvent_MessageEvent_Type.Descriptor instead.

func (Span_TimeEvent_MessageEvent_Type) Number added in v0.3.0

func (Span_TimeEvent_MessageEvent_Type) String

func (Span_TimeEvent_MessageEvent_Type) Type added in v0.3.0

type Span_TimeEvents

type Span_TimeEvents struct {

	// A collection of `TimeEvent`s.
	TimeEvent []*Span_TimeEvent `protobuf:"bytes,1,rep,name=time_event,json=timeEvent,proto3" json:"time_event,omitempty"`
	// The number of dropped annotations in all the included time events.
	// If the value is 0, then no annotations were dropped.
	DroppedAnnotationsCount int32 `` /* 133-byte string literal not displayed */
	// The number of dropped message events in all the included time events.
	// If the value is 0, then no message events were dropped.
	DroppedMessageEventsCount int32 `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

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 deprecated

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 added in v0.3.0

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 deprecated

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 added in v0.3.0

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 deprecated

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 added in v0.3.0

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 deprecated

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 added in v0.3.0

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 deprecated

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 added in v0.3.0

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 deprecated

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 (*StackTrace_StackFrames) ProtoMessage

func (*StackTrace_StackFrames) ProtoMessage()

func (*StackTrace_StackFrames) ProtoReflect added in v0.3.0

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 deprecated

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 added in v0.3.0

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 {

	// The global default sampler used to make decisions on span sampling.
	//
	// Types that are assignable to Sampler:
	//	*TraceConfig_ProbabilitySampler
	//	*TraceConfig_ConstantSampler
	//	*TraceConfig_RateLimitingSampler
	Sampler isTraceConfig_Sampler `protobuf_oneof:"sampler"`
	// The global default max number of attributes per span.
	MaxNumberOfAttributes int64 `` /* 129-byte string literal not displayed */
	// The global default max number of annotation events per span.
	MaxNumberOfAnnotations int64 `` /* 132-byte string literal not displayed */
	// The global default max number of message events per span.
	MaxNumberOfMessageEvents int64 `` /* 140-byte string literal not displayed */
	// The global default max number of link entries per span.
	MaxNumberOfLinks int64 `protobuf:"varint,7,opt,name=max_number_of_links,json=maxNumberOfLinks,proto3" json:"max_number_of_links,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use TraceConfig.ProtoReflect.Descriptor instead.

func (*TraceConfig) GetConstantSampler

func (x *TraceConfig) GetConstantSampler() *ConstantSampler

func (*TraceConfig) GetMaxNumberOfAnnotations added in v0.1.0

func (x *TraceConfig) GetMaxNumberOfAnnotations() int64

func (*TraceConfig) GetMaxNumberOfAttributes added in v0.1.0

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

func (*TraceConfig) GetMaxNumberOfMessageEvents added in v0.1.0

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 added in v0.3.0

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 deprecated

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 added in v0.3.0

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

func (*TruncatableString) Reset

func (x *TruncatableString) Reset()

func (*TruncatableString) String

func (x *TruncatableString) String() string

Jump to

Keyboard shortcuts

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