Documentation
¶
Index ¶
- Constants
- Variables
- type AttributeValue
- func (x *AttributeValue) ClearBoolValue()
- func (x *AttributeValue) ClearDoubleValue()
- func (x *AttributeValue) ClearIntValue()
- func (x *AttributeValue) ClearStringValue()
- func (x *AttributeValue) ClearValue()
- func (x *AttributeValue) GetBoolValue() bool
- func (x *AttributeValue) GetDoubleValue() float64
- func (x *AttributeValue) GetIntValue() int64
- func (x *AttributeValue) GetStringValue() *TruncatableString
- func (x *AttributeValue) GetValue() isAttributeValue_Value
- func (x *AttributeValue) HasBoolValue() bool
- func (x *AttributeValue) HasDoubleValue() bool
- func (x *AttributeValue) HasIntValue() bool
- func (x *AttributeValue) HasStringValue() bool
- func (x *AttributeValue) HasValue() bool
- func (*AttributeValue) ProtoMessage()
- func (x *AttributeValue) ProtoReflect() protoreflect.Message
- func (x *AttributeValue) Reset()
- func (x *AttributeValue) SetBoolValue(v bool)
- func (x *AttributeValue) SetDoubleValue(v float64)
- func (x *AttributeValue) SetIntValue(v int64)
- func (x *AttributeValue) SetStringValue(v *TruncatableString)
- func (x *AttributeValue) String() string
- func (x *AttributeValue) WhichValue() case_AttributeValue_Value
- type AttributeValue_BoolValue
- type AttributeValue_DoubleValue
- type AttributeValue_IntValue
- type AttributeValue_StringValue
- type AttributeValue_builder
- type ConstantSampler
- func (x *ConstantSampler) GetDecision() ConstantSampler_ConstantDecision
- func (*ConstantSampler) ProtoMessage()
- func (x *ConstantSampler) ProtoReflect() protoreflect.Message
- func (x *ConstantSampler) Reset()
- func (x *ConstantSampler) SetDecision(v ConstantSampler_ConstantDecision)
- func (x *ConstantSampler) String() string
- type ConstantSampler_ConstantDecision
- func (ConstantSampler_ConstantDecision) Descriptor() protoreflect.EnumDescriptor
- func (x ConstantSampler_ConstantDecision) Enum() *ConstantSampler_ConstantDecision
- func (x ConstantSampler_ConstantDecision) Number() protoreflect.EnumNumber
- func (x ConstantSampler_ConstantDecision) String() string
- func (ConstantSampler_ConstantDecision) Type() protoreflect.EnumType
- type ConstantSampler_builder
- type Module
- func (x *Module) ClearBuildId()
- func (x *Module) ClearModule()
- func (x *Module) GetBuildId() *TruncatableString
- func (x *Module) GetModule() *TruncatableString
- func (x *Module) HasBuildId() bool
- func (x *Module) HasModule() bool
- func (*Module) ProtoMessage()
- func (x *Module) ProtoReflect() protoreflect.Message
- func (x *Module) Reset()
- func (x *Module) SetBuildId(v *TruncatableString)
- func (x *Module) SetModule(v *TruncatableString)
- func (x *Module) String() string
- type Module_builder
- type ProbabilitySampler
- func (x *ProbabilitySampler) GetSamplingProbability() float64
- func (*ProbabilitySampler) ProtoMessage()
- func (x *ProbabilitySampler) ProtoReflect() protoreflect.Message
- func (x *ProbabilitySampler) Reset()
- func (x *ProbabilitySampler) SetSamplingProbability(v float64)
- func (x *ProbabilitySampler) String() string
- type ProbabilitySampler_builder
- type RateLimitingSampler
- type RateLimitingSampler_builder
- type Span
- func (x *Span) ClearAttributes()
- func (x *Span) ClearChildSpanCount()
- func (x *Span) ClearEndTime()
- func (x *Span) ClearLinks()
- func (x *Span) ClearName()
- func (x *Span) ClearResource()
- func (x *Span) ClearSameProcessAsParentSpan()
- func (x *Span) ClearStackTrace()
- func (x *Span) ClearStartTime()
- func (x *Span) ClearStatus()
- func (x *Span) ClearTimeEvents()
- func (x *Span) ClearTracestate()
- func (x *Span) GetAttributes() *Span_Attributes
- func (x *Span) GetChildSpanCount() *wrapperspb.UInt32Value
- func (x *Span) GetEndTime() *timestamppb.Timestamp
- func (x *Span) GetKind() Span_SpanKind
- func (x *Span) GetLinks() *Span_Links
- func (x *Span) GetName() *TruncatableString
- func (x *Span) GetParentSpanId() []byte
- func (x *Span) GetResource() *v1.Resource
- func (x *Span) GetSameProcessAsParentSpan() *wrapperspb.BoolValue
- func (x *Span) GetSpanId() []byte
- func (x *Span) GetStackTrace() *StackTrace
- func (x *Span) GetStartTime() *timestamppb.Timestamp
- func (x *Span) GetStatus() *Status
- func (x *Span) GetTimeEvents() *Span_TimeEvents
- func (x *Span) GetTraceId() []byte
- func (x *Span) GetTracestate() *Span_Tracestate
- func (x *Span) HasAttributes() bool
- func (x *Span) HasChildSpanCount() bool
- func (x *Span) HasEndTime() bool
- func (x *Span) HasLinks() bool
- func (x *Span) HasName() bool
- func (x *Span) HasResource() bool
- func (x *Span) HasSameProcessAsParentSpan() bool
- func (x *Span) HasStackTrace() bool
- func (x *Span) HasStartTime() bool
- func (x *Span) HasStatus() bool
- func (x *Span) HasTimeEvents() bool
- func (x *Span) HasTracestate() bool
- func (*Span) ProtoMessage()
- func (x *Span) ProtoReflect() protoreflect.Message
- func (x *Span) Reset()
- func (x *Span) SetAttributes(v *Span_Attributes)
- func (x *Span) SetChildSpanCount(v *wrapperspb.UInt32Value)
- func (x *Span) SetEndTime(v *timestamppb.Timestamp)
- func (x *Span) SetKind(v Span_SpanKind)
- func (x *Span) SetLinks(v *Span_Links)
- func (x *Span) SetName(v *TruncatableString)
- func (x *Span) SetParentSpanId(v []byte)
- func (x *Span) SetResource(v *v1.Resource)
- func (x *Span) SetSameProcessAsParentSpan(v *wrapperspb.BoolValue)
- func (x *Span) SetSpanId(v []byte)
- func (x *Span) SetStackTrace(v *StackTrace)
- func (x *Span) SetStartTime(v *timestamppb.Timestamp)
- func (x *Span) SetStatus(v *Status)
- func (x *Span) SetTimeEvents(v *Span_TimeEvents)
- func (x *Span) SetTraceId(v []byte)
- func (x *Span) SetTracestate(v *Span_Tracestate)
- func (x *Span) String() string
- type Span_Attributes
- func (x *Span_Attributes) GetAttributeMap() map[string]*AttributeValue
- func (x *Span_Attributes) GetDroppedAttributesCount() int32
- func (*Span_Attributes) ProtoMessage()
- func (x *Span_Attributes) ProtoReflect() protoreflect.Message
- func (x *Span_Attributes) Reset()
- func (x *Span_Attributes) SetAttributeMap(v map[string]*AttributeValue)
- func (x *Span_Attributes) SetDroppedAttributesCount(v int32)
- func (x *Span_Attributes) String() string
- type Span_Attributes_builder
- type Span_Link
- func (x *Span_Link) ClearAttributes()
- func (x *Span_Link) ClearTracestate()
- func (x *Span_Link) GetAttributes() *Span_Attributes
- func (x *Span_Link) GetSpanId() []byte
- func (x *Span_Link) GetTraceId() []byte
- func (x *Span_Link) GetTracestate() *Span_Tracestate
- func (x *Span_Link) GetType() Span_Link_Type
- func (x *Span_Link) HasAttributes() bool
- func (x *Span_Link) HasTracestate() bool
- func (*Span_Link) ProtoMessage()
- func (x *Span_Link) ProtoReflect() protoreflect.Message
- func (x *Span_Link) Reset()
- func (x *Span_Link) SetAttributes(v *Span_Attributes)
- func (x *Span_Link) SetSpanId(v []byte)
- func (x *Span_Link) SetTraceId(v []byte)
- func (x *Span_Link) SetTracestate(v *Span_Tracestate)
- func (x *Span_Link) SetType(v Span_Link_Type)
- func (x *Span_Link) String() string
- type Span_Link_Type
- type Span_Link_builder
- type Span_Links
- func (x *Span_Links) GetDroppedLinksCount() int32
- func (x *Span_Links) GetLink() []*Span_Link
- func (*Span_Links) ProtoMessage()
- func (x *Span_Links) ProtoReflect() protoreflect.Message
- func (x *Span_Links) Reset()
- func (x *Span_Links) SetDroppedLinksCount(v int32)
- func (x *Span_Links) SetLink(v []*Span_Link)
- func (x *Span_Links) String() string
- type Span_Links_builder
- type Span_SpanKind
- type Span_TimeEvent
- func (x *Span_TimeEvent) ClearAnnotation()
- func (x *Span_TimeEvent) ClearMessageEvent()
- func (x *Span_TimeEvent) ClearTime()
- func (x *Span_TimeEvent) ClearValue()
- func (x *Span_TimeEvent) GetAnnotation() *Span_TimeEvent_Annotation
- func (x *Span_TimeEvent) GetMessageEvent() *Span_TimeEvent_MessageEvent
- func (x *Span_TimeEvent) GetTime() *timestamppb.Timestamp
- func (x *Span_TimeEvent) GetValue() isSpan_TimeEvent_Value
- func (x *Span_TimeEvent) HasAnnotation() bool
- func (x *Span_TimeEvent) HasMessageEvent() bool
- func (x *Span_TimeEvent) HasTime() bool
- func (x *Span_TimeEvent) HasValue() bool
- func (*Span_TimeEvent) ProtoMessage()
- func (x *Span_TimeEvent) ProtoReflect() protoreflect.Message
- func (x *Span_TimeEvent) Reset()
- func (x *Span_TimeEvent) SetAnnotation(v *Span_TimeEvent_Annotation)
- func (x *Span_TimeEvent) SetMessageEvent(v *Span_TimeEvent_MessageEvent)
- func (x *Span_TimeEvent) SetTime(v *timestamppb.Timestamp)
- func (x *Span_TimeEvent) String() string
- func (x *Span_TimeEvent) WhichValue() case_Span_TimeEvent_Value
- type Span_TimeEvent_Annotation
- func (x *Span_TimeEvent_Annotation) ClearAttributes()
- func (x *Span_TimeEvent_Annotation) ClearDescription()
- func (x *Span_TimeEvent_Annotation) GetAttributes() *Span_Attributes
- func (x *Span_TimeEvent_Annotation) GetDescription() *TruncatableString
- func (x *Span_TimeEvent_Annotation) HasAttributes() bool
- func (x *Span_TimeEvent_Annotation) HasDescription() bool
- func (*Span_TimeEvent_Annotation) ProtoMessage()
- func (x *Span_TimeEvent_Annotation) ProtoReflect() protoreflect.Message
- func (x *Span_TimeEvent_Annotation) Reset()
- func (x *Span_TimeEvent_Annotation) SetAttributes(v *Span_Attributes)
- func (x *Span_TimeEvent_Annotation) SetDescription(v *TruncatableString)
- func (x *Span_TimeEvent_Annotation) String() string
- type Span_TimeEvent_Annotation_
- type Span_TimeEvent_Annotation_builder
- type Span_TimeEvent_MessageEvent
- func (x *Span_TimeEvent_MessageEvent) GetCompressedSize() uint64
- func (x *Span_TimeEvent_MessageEvent) GetId() uint64
- func (x *Span_TimeEvent_MessageEvent) GetType() Span_TimeEvent_MessageEvent_Type
- func (x *Span_TimeEvent_MessageEvent) GetUncompressedSize() uint64
- func (*Span_TimeEvent_MessageEvent) ProtoMessage()
- func (x *Span_TimeEvent_MessageEvent) ProtoReflect() protoreflect.Message
- func (x *Span_TimeEvent_MessageEvent) Reset()
- func (x *Span_TimeEvent_MessageEvent) SetCompressedSize(v uint64)
- func (x *Span_TimeEvent_MessageEvent) SetId(v uint64)
- func (x *Span_TimeEvent_MessageEvent) SetType(v Span_TimeEvent_MessageEvent_Type)
- func (x *Span_TimeEvent_MessageEvent) SetUncompressedSize(v uint64)
- func (x *Span_TimeEvent_MessageEvent) String() string
- type Span_TimeEvent_MessageEvent_
- type Span_TimeEvent_MessageEvent_Type
- func (Span_TimeEvent_MessageEvent_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Span_TimeEvent_MessageEvent_Type) Enum() *Span_TimeEvent_MessageEvent_Type
- func (x Span_TimeEvent_MessageEvent_Type) Number() protoreflect.EnumNumber
- func (x Span_TimeEvent_MessageEvent_Type) String() string
- func (Span_TimeEvent_MessageEvent_Type) Type() protoreflect.EnumType
- type Span_TimeEvent_MessageEvent_builder
- type Span_TimeEvent_builder
- type Span_TimeEvents
- func (x *Span_TimeEvents) GetDroppedAnnotationsCount() int32
- func (x *Span_TimeEvents) GetDroppedMessageEventsCount() int32
- func (x *Span_TimeEvents) GetTimeEvent() []*Span_TimeEvent
- func (*Span_TimeEvents) ProtoMessage()
- func (x *Span_TimeEvents) ProtoReflect() protoreflect.Message
- func (x *Span_TimeEvents) Reset()
- func (x *Span_TimeEvents) SetDroppedAnnotationsCount(v int32)
- func (x *Span_TimeEvents) SetDroppedMessageEventsCount(v int32)
- func (x *Span_TimeEvents) SetTimeEvent(v []*Span_TimeEvent)
- func (x *Span_TimeEvents) String() string
- type Span_TimeEvents_builder
- type Span_Tracestate
- func (x *Span_Tracestate) GetEntries() []*Span_Tracestate_Entry
- func (*Span_Tracestate) ProtoMessage()
- func (x *Span_Tracestate) ProtoReflect() protoreflect.Message
- func (x *Span_Tracestate) Reset()
- func (x *Span_Tracestate) SetEntries(v []*Span_Tracestate_Entry)
- func (x *Span_Tracestate) String() string
- type Span_Tracestate_Entry
- func (x *Span_Tracestate_Entry) GetKey() string
- func (x *Span_Tracestate_Entry) GetValue() string
- func (*Span_Tracestate_Entry) ProtoMessage()
- func (x *Span_Tracestate_Entry) ProtoReflect() protoreflect.Message
- func (x *Span_Tracestate_Entry) Reset()
- func (x *Span_Tracestate_Entry) SetKey(v string)
- func (x *Span_Tracestate_Entry) SetValue(v string)
- func (x *Span_Tracestate_Entry) String() string
- type Span_Tracestate_Entry_builder
- type Span_Tracestate_builder
- type Span_builder
- type StackTrace
- func (x *StackTrace) ClearStackFrames()
- func (x *StackTrace) GetStackFrames() *StackTrace_StackFrames
- func (x *StackTrace) GetStackTraceHashId() uint64
- func (x *StackTrace) HasStackFrames() bool
- func (*StackTrace) ProtoMessage()
- func (x *StackTrace) ProtoReflect() protoreflect.Message
- func (x *StackTrace) Reset()
- func (x *StackTrace) SetStackFrames(v *StackTrace_StackFrames)
- func (x *StackTrace) SetStackTraceHashId(v uint64)
- func (x *StackTrace) String() string
- type StackTrace_StackFrame
- func (x *StackTrace_StackFrame) ClearFileName()
- func (x *StackTrace_StackFrame) ClearFunctionName()
- func (x *StackTrace_StackFrame) ClearLoadModule()
- func (x *StackTrace_StackFrame) ClearOriginalFunctionName()
- func (x *StackTrace_StackFrame) ClearSourceVersion()
- func (x *StackTrace_StackFrame) GetColumnNumber() int64
- func (x *StackTrace_StackFrame) GetFileName() *TruncatableString
- func (x *StackTrace_StackFrame) GetFunctionName() *TruncatableString
- func (x *StackTrace_StackFrame) GetLineNumber() int64
- func (x *StackTrace_StackFrame) GetLoadModule() *Module
- func (x *StackTrace_StackFrame) GetOriginalFunctionName() *TruncatableString
- func (x *StackTrace_StackFrame) GetSourceVersion() *TruncatableString
- func (x *StackTrace_StackFrame) HasFileName() bool
- func (x *StackTrace_StackFrame) HasFunctionName() bool
- func (x *StackTrace_StackFrame) HasLoadModule() bool
- func (x *StackTrace_StackFrame) HasOriginalFunctionName() bool
- func (x *StackTrace_StackFrame) HasSourceVersion() bool
- func (*StackTrace_StackFrame) ProtoMessage()
- func (x *StackTrace_StackFrame) ProtoReflect() protoreflect.Message
- func (x *StackTrace_StackFrame) Reset()
- func (x *StackTrace_StackFrame) SetColumnNumber(v int64)
- func (x *StackTrace_StackFrame) SetFileName(v *TruncatableString)
- func (x *StackTrace_StackFrame) SetFunctionName(v *TruncatableString)
- func (x *StackTrace_StackFrame) SetLineNumber(v int64)
- func (x *StackTrace_StackFrame) SetLoadModule(v *Module)
- func (x *StackTrace_StackFrame) SetOriginalFunctionName(v *TruncatableString)
- func (x *StackTrace_StackFrame) SetSourceVersion(v *TruncatableString)
- func (x *StackTrace_StackFrame) String() string
- type StackTrace_StackFrame_builder
- type StackTrace_StackFrames
- func (x *StackTrace_StackFrames) GetDroppedFramesCount() int32
- func (x *StackTrace_StackFrames) GetFrame() []*StackTrace_StackFrame
- func (*StackTrace_StackFrames) ProtoMessage()
- func (x *StackTrace_StackFrames) ProtoReflect() protoreflect.Message
- func (x *StackTrace_StackFrames) Reset()
- func (x *StackTrace_StackFrames) SetDroppedFramesCount(v int32)
- func (x *StackTrace_StackFrames) SetFrame(v []*StackTrace_StackFrame)
- func (x *StackTrace_StackFrames) String() string
- type StackTrace_StackFrames_builder
- type StackTrace_builder
- type Status
- type Status_builder
- type TraceConfig
- func (x *TraceConfig) ClearConstantSampler()
- func (x *TraceConfig) ClearProbabilitySampler()
- func (x *TraceConfig) ClearRateLimitingSampler()
- func (x *TraceConfig) ClearSampler()
- func (x *TraceConfig) GetConstantSampler() *ConstantSampler
- func (x *TraceConfig) GetMaxNumberOfAnnotations() int64
- func (x *TraceConfig) GetMaxNumberOfAttributes() int64
- func (x *TraceConfig) GetMaxNumberOfLinks() int64
- func (x *TraceConfig) GetMaxNumberOfMessageEvents() int64
- func (x *TraceConfig) GetProbabilitySampler() *ProbabilitySampler
- func (x *TraceConfig) GetRateLimitingSampler() *RateLimitingSampler
- func (x *TraceConfig) GetSampler() isTraceConfig_Sampler
- func (x *TraceConfig) HasConstantSampler() bool
- func (x *TraceConfig) HasProbabilitySampler() bool
- func (x *TraceConfig) HasRateLimitingSampler() bool
- func (x *TraceConfig) HasSampler() bool
- func (*TraceConfig) ProtoMessage()
- func (x *TraceConfig) ProtoReflect() protoreflect.Message
- func (x *TraceConfig) Reset()
- func (x *TraceConfig) SetConstantSampler(v *ConstantSampler)
- func (x *TraceConfig) SetMaxNumberOfAnnotations(v int64)
- func (x *TraceConfig) SetMaxNumberOfAttributes(v int64)
- func (x *TraceConfig) SetMaxNumberOfLinks(v int64)
- func (x *TraceConfig) SetMaxNumberOfMessageEvents(v int64)
- func (x *TraceConfig) SetProbabilitySampler(v *ProbabilitySampler)
- func (x *TraceConfig) SetRateLimitingSampler(v *RateLimitingSampler)
- func (x *TraceConfig) String() string
- func (x *TraceConfig) WhichSampler() case_TraceConfig_Sampler
- type TraceConfig_ConstantSampler
- type TraceConfig_ProbabilitySampler
- type TraceConfig_RateLimitingSampler
- type TraceConfig_builder
- type TruncatableString
- func (x *TruncatableString) GetTruncatedByteCount() int32
- func (x *TruncatableString) GetValue() string
- func (*TruncatableString) ProtoMessage()
- func (x *TruncatableString) ProtoReflect() protoreflect.Message
- func (x *TruncatableString) Reset()
- func (x *TruncatableString) SetTruncatedByteCount(v int32)
- func (x *TruncatableString) SetValue(v string)
- func (x *TruncatableString) String() string
- type TruncatableString_builder
Constants ¶
const AttributeValue_BoolValue_case case_AttributeValue_Value = 3
const AttributeValue_DoubleValue_case case_AttributeValue_Value = 4
const AttributeValue_IntValue_case case_AttributeValue_Value = 2
const AttributeValue_StringValue_case case_AttributeValue_Value = 1
const AttributeValue_Value_not_set_case case_AttributeValue_Value = 0
const Span_TimeEvent_Annotation_case case_Span_TimeEvent_Value = 2
const Span_TimeEvent_MessageEvent_case case_Span_TimeEvent_Value = 3
const Span_TimeEvent_Value_not_set_case case_Span_TimeEvent_Value = 0
const TraceConfig_ConstantSampler_case case_TraceConfig_Sampler = 2
const TraceConfig_ProbabilitySampler_case case_TraceConfig_Sampler = 1
const TraceConfig_RateLimitingSampler_case case_TraceConfig_Sampler = 3
const TraceConfig_Sampler_not_set_case case_TraceConfig_Sampler = 0
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
Functions ¶
This section is empty.
Types ¶
type AttributeValue ¶
type AttributeValue struct {
// The type of the value.
//
// Types that are valid to be assigned 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) ClearBoolValue ¶
func (x *AttributeValue) ClearBoolValue()
func (*AttributeValue) ClearDoubleValue ¶
func (x *AttributeValue) ClearDoubleValue()
func (*AttributeValue) ClearIntValue ¶
func (x *AttributeValue) ClearIntValue()
func (*AttributeValue) ClearStringValue ¶
func (x *AttributeValue) ClearStringValue()
func (*AttributeValue) ClearValue ¶
func (x *AttributeValue) ClearValue()
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 (x *AttributeValue) GetValue() isAttributeValue_Value
func (*AttributeValue) HasBoolValue ¶
func (x *AttributeValue) HasBoolValue() bool
func (*AttributeValue) HasDoubleValue ¶
func (x *AttributeValue) HasDoubleValue() bool
func (*AttributeValue) HasIntValue ¶
func (x *AttributeValue) HasIntValue() bool
func (*AttributeValue) HasStringValue ¶
func (x *AttributeValue) HasStringValue() bool
func (*AttributeValue) HasValue ¶
func (x *AttributeValue) HasValue() bool
func (*AttributeValue) ProtoMessage ¶
func (*AttributeValue) ProtoMessage()
func (*AttributeValue) ProtoReflect ¶
func (x *AttributeValue) ProtoReflect() protoreflect.Message
func (*AttributeValue) Reset ¶
func (x *AttributeValue) Reset()
func (*AttributeValue) SetBoolValue ¶
func (x *AttributeValue) SetBoolValue(v bool)
func (*AttributeValue) SetDoubleValue ¶
func (x *AttributeValue) SetDoubleValue(v float64)
func (*AttributeValue) SetIntValue ¶
func (x *AttributeValue) SetIntValue(v int64)
func (*AttributeValue) SetStringValue ¶
func (x *AttributeValue) SetStringValue(v *TruncatableString)
func (*AttributeValue) String ¶
func (x *AttributeValue) String() string
func (*AttributeValue) WhichValue ¶
func (x *AttributeValue) WhichValue() case_AttributeValue_Value
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 AttributeValue_builder ¶
type AttributeValue_builder struct {
// Fields of oneof Value:
// A string up to 256 bytes long.
StringValue *TruncatableString
// A 64-bit signed integer.
IntValue *int64
// A Boolean value represented by `true` or `false`.
BoolValue *bool
// A double value.
DoubleValue *float64
// contains filtered or unexported fields
}
func (AttributeValue_builder) Build ¶
func (b0 AttributeValue_builder) Build() *AttributeValue
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) 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) SetDecision ¶
func (x *ConstantSampler) SetDecision(v ConstantSampler_ConstantDecision)
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) 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 ConstantSampler_builder ¶
type ConstantSampler_builder struct {
Decision ConstantSampler_ConstantDecision
// contains filtered or unexported fields
}
func (ConstantSampler_builder) Build ¶
func (b0 ConstantSampler_builder) Build() *ConstantSampler
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) GetBuildId ¶
func (x *Module) GetBuildId() *TruncatableString
func (*Module) GetModule ¶
func (x *Module) GetModule() *TruncatableString
func (*Module) ProtoReflect ¶
func (x *Module) ProtoReflect() protoreflect.Message
func (*Module) SetBuildId ¶
func (x *Module) SetBuildId(v *TruncatableString)
func (*Module) SetModule ¶
func (x *Module) SetModule(v *TruncatableString)
type Module_builder ¶
type Module_builder 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
// A unique identifier for the module, usually a hash of its
// contents.
BuildId *TruncatableString
// contains filtered or unexported fields
}
func (Module_builder) Build ¶
func (b0 Module_builder) Build() *Module
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) 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) SetSamplingProbability ¶
func (x *ProbabilitySampler) SetSamplingProbability(v float64)
func (*ProbabilitySampler) String ¶
func (x *ProbabilitySampler) String() string
type ProbabilitySampler_builder ¶
type ProbabilitySampler_builder struct {
// The desired probability of sampling. Must be within [0.0, 1.0].
SamplingProbability float64
// contains filtered or unexported fields
}
func (ProbabilitySampler_builder) Build ¶
func (b0 ProbabilitySampler_builder) Build() *ProbabilitySampler
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) 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) SetQps ¶
func (x *RateLimitingSampler) SetQps(v int64)
func (*RateLimitingSampler) String ¶
func (x *RateLimitingSampler) String() string
type RateLimitingSampler_builder ¶
type RateLimitingSampler_builder struct {
// Rate per second.
Qps int64
// contains filtered or unexported fields
}
func (RateLimitingSampler_builder) Build ¶
func (b0 RateLimitingSampler_builder) Build() *RateLimitingSampler
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) 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 (*Span) GetLinks ¶
func (x *Span) GetLinks() *Span_Links
func (*Span) GetName ¶
func (x *Span) GetName() *TruncatableString
func (*Span) GetSameProcessAsParentSpan ¶
func (x *Span) GetSameProcessAsParentSpan() *wrapperspb.BoolValue
func (*Span) GetStackTrace ¶
func (x *Span) GetStackTrace() *StackTrace
func (*Span) GetStartTime ¶
func (x *Span) GetStartTime() *timestamppb.Timestamp
func (*Span) GetTimeEvents ¶
func (x *Span) GetTimeEvents() *Span_TimeEvents
func (*Span) GetTracestate ¶
func (x *Span) GetTracestate() *Span_Tracestate
func (*Span) ProtoReflect ¶
func (x *Span) ProtoReflect() protoreflect.Message
func (*Span) SetAttributes ¶
func (x *Span) SetAttributes(v *Span_Attributes)
func (*Span) SetChildSpanCount ¶
func (x *Span) SetChildSpanCount(v *wrapperspb.UInt32Value)
func (*Span) SetEndTime ¶
func (x *Span) SetEndTime(v *timestamppb.Timestamp)
func (*Span) SetKind ¶
func (x *Span) SetKind(v Span_SpanKind)
func (*Span) SetLinks ¶
func (x *Span) SetLinks(v *Span_Links)
func (*Span) SetName ¶
func (x *Span) SetName(v *TruncatableString)
func (*Span) SetSameProcessAsParentSpan ¶
func (x *Span) SetSameProcessAsParentSpan(v *wrapperspb.BoolValue)
func (*Span) SetStackTrace ¶
func (x *Span) SetStackTrace(v *StackTrace)
func (*Span) SetStartTime ¶
func (x *Span) SetStartTime(v *timestamppb.Timestamp)
func (*Span) SetTimeEvents ¶
func (x *Span) SetTimeEvents(v *Span_TimeEvents)
func (*Span) SetTracestate ¶
func (x *Span) SetTracestate(v *Span_Tracestate)
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 `` /* 171-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) 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) SetAttributeMap ¶
func (x *Span_Attributes) SetAttributeMap(v map[string]*AttributeValue)
func (*Span_Attributes) SetDroppedAttributesCount ¶
func (x *Span_Attributes) SetDroppedAttributesCount(v int32)
func (*Span_Attributes) String ¶
func (x *Span_Attributes) String() string
type Span_Attributes_builder ¶
type Span_Attributes_builder 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
// 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
// contains filtered or unexported fields
}
func (Span_Attributes_builder) Build ¶
func (b0 Span_Attributes_builder) Build() *Span_Attributes
type Span_Link ¶
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) GetAttributes ¶
func (x *Span_Link) GetAttributes() *Span_Attributes
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) ProtoReflect ¶
func (x *Span_Link) ProtoReflect() protoreflect.Message
func (*Span_Link) SetAttributes ¶
func (x *Span_Link) SetAttributes(v *Span_Attributes)
func (*Span_Link) SetTracestate ¶
func (x *Span_Link) SetTracestate(v *Span_Tracestate)
func (*Span_Link) SetType ¶
func (x *Span_Link) SetType(v Span_Link_Type)
type Span_Link_Type ¶
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 ¶
func (Span_Link_Type) Descriptor() protoreflect.EnumDescriptor
func (Span_Link_Type) Enum ¶
func (x Span_Link_Type) Enum() *Span_Link_Type
func (Span_Link_Type) Number ¶
func (x Span_Link_Type) Number() protoreflect.EnumNumber
func (Span_Link_Type) String ¶
func (x Span_Link_Type) String() string
func (Span_Link_Type) Type ¶
func (Span_Link_Type) Type() protoreflect.EnumType
type Span_Link_builder ¶
type Span_Link_builder struct {
// A unique identifier of a trace that this linked span is part of. The ID is a
// 16-byte array.
TraceId []byte
// A unique identifier for the linked span. The ID is an 8-byte array.
SpanId []byte
// The relationship of the current span relative to the linked span.
Type Span_Link_Type
// A set of attributes on the link.
Attributes *Span_Attributes
// The Tracestate associated with the link.
Tracestate *Span_Tracestate
// contains filtered or unexported fields
}
func (Span_Link_builder) Build ¶
func (b0 Span_Link_builder) Build() *Span_Link
type Span_Links ¶
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) GetDroppedLinksCount ¶
func (x *Span_Links) GetDroppedLinksCount() int32
func (*Span_Links) GetLink ¶
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) SetDroppedLinksCount ¶
func (x *Span_Links) SetDroppedLinksCount(v int32)
func (*Span_Links) SetLink ¶
func (x *Span_Links) SetLink(v []*Span_Link)
func (*Span_Links) String ¶
func (x *Span_Links) String() string
type Span_Links_builder ¶
type Span_Links_builder struct {
// A collection of links.
Link []*Span_Link
// The number of dropped links after the maximum size was enforced. If
// this value is 0, then no links were dropped.
DroppedLinksCount int32
// contains filtered or unexported fields
}
func (Span_Links_builder) Build ¶
func (b0 Span_Links_builder) Build() *Span_Links
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) 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 *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 valid to be assigned 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) ClearAnnotation ¶
func (x *Span_TimeEvent) ClearAnnotation()
func (*Span_TimeEvent) ClearMessageEvent ¶
func (x *Span_TimeEvent) ClearMessageEvent()
func (*Span_TimeEvent) ClearTime ¶
func (x *Span_TimeEvent) ClearTime()
func (*Span_TimeEvent) ClearValue ¶
func (x *Span_TimeEvent) ClearValue()
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 (x *Span_TimeEvent) GetValue() isSpan_TimeEvent_Value
func (*Span_TimeEvent) HasAnnotation ¶
func (x *Span_TimeEvent) HasAnnotation() bool
func (*Span_TimeEvent) HasMessageEvent ¶
func (x *Span_TimeEvent) HasMessageEvent() bool
func (*Span_TimeEvent) HasTime ¶
func (x *Span_TimeEvent) HasTime() bool
func (*Span_TimeEvent) HasValue ¶
func (x *Span_TimeEvent) HasValue() bool
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) SetAnnotation ¶
func (x *Span_TimeEvent) SetAnnotation(v *Span_TimeEvent_Annotation)
func (*Span_TimeEvent) SetMessageEvent ¶
func (x *Span_TimeEvent) SetMessageEvent(v *Span_TimeEvent_MessageEvent)
func (*Span_TimeEvent) SetTime ¶
func (x *Span_TimeEvent) SetTime(v *timestamppb.Timestamp)
func (*Span_TimeEvent) String ¶
func (x *Span_TimeEvent) String() string
func (*Span_TimeEvent) WhichValue ¶
func (x *Span_TimeEvent) WhichValue() case_Span_TimeEvent_Value
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) ClearAttributes ¶
func (x *Span_TimeEvent_Annotation) ClearAttributes()
func (*Span_TimeEvent_Annotation) ClearDescription ¶
func (x *Span_TimeEvent_Annotation) ClearDescription()
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) HasAttributes ¶
func (x *Span_TimeEvent_Annotation) HasAttributes() bool
func (*Span_TimeEvent_Annotation) HasDescription ¶
func (x *Span_TimeEvent_Annotation) HasDescription() bool
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) SetAttributes ¶
func (x *Span_TimeEvent_Annotation) SetAttributes(v *Span_Attributes)
func (*Span_TimeEvent_Annotation) SetDescription ¶
func (x *Span_TimeEvent_Annotation) SetDescription(v *TruncatableString)
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_Annotation_builder ¶
type Span_TimeEvent_Annotation_builder struct {
// A user-supplied message describing the event.
Description *TruncatableString
// A set of attributes on the annotation.
Attributes *Span_Attributes
// contains filtered or unexported fields
}
func (Span_TimeEvent_Annotation_builder) Build ¶
func (b0 Span_TimeEvent_Annotation_builder) Build() *Span_TimeEvent_Annotation
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) 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) SetCompressedSize ¶
func (x *Span_TimeEvent_MessageEvent) SetCompressedSize(v uint64)
func (*Span_TimeEvent_MessageEvent) SetId ¶
func (x *Span_TimeEvent_MessageEvent) SetId(v uint64)
func (*Span_TimeEvent_MessageEvent) SetType ¶
func (x *Span_TimeEvent_MessageEvent) SetType(v Span_TimeEvent_MessageEvent_Type)
func (*Span_TimeEvent_MessageEvent) SetUncompressedSize ¶
func (x *Span_TimeEvent_MessageEvent) SetUncompressedSize(v uint64)
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) 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_TimeEvent_MessageEvent_builder ¶
type Span_TimeEvent_MessageEvent_builder struct {
// The type of MessageEvent. Indicates whether the message was sent or
// received.
Type Span_TimeEvent_MessageEvent_Type
// 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
// The number of uncompressed bytes sent or received.
UncompressedSize uint64
// The number of compressed bytes sent or received. If zero, assumed to
// be the same size as uncompressed.
CompressedSize uint64
// contains filtered or unexported fields
}
func (Span_TimeEvent_MessageEvent_builder) Build ¶
func (b0 Span_TimeEvent_MessageEvent_builder) Build() *Span_TimeEvent_MessageEvent
type Span_TimeEvent_builder ¶
type Span_TimeEvent_builder struct {
// The time the event occurred.
Time *timestamppb.Timestamp
// Fields of oneof Value:
// A text annotation with a set of attributes.
Annotation *Span_TimeEvent_Annotation
// An event describing a message sent/received between Spans.
MessageEvent *Span_TimeEvent_MessageEvent
// contains filtered or unexported fields
}
func (Span_TimeEvent_builder) Build ¶
func (b0 Span_TimeEvent_builder) Build() *Span_TimeEvent
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) 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) SetDroppedAnnotationsCount ¶
func (x *Span_TimeEvents) SetDroppedAnnotationsCount(v int32)
func (*Span_TimeEvents) SetDroppedMessageEventsCount ¶
func (x *Span_TimeEvents) SetDroppedMessageEventsCount(v int32)
func (*Span_TimeEvents) SetTimeEvent ¶
func (x *Span_TimeEvents) SetTimeEvent(v []*Span_TimeEvent)
func (*Span_TimeEvents) String ¶
func (x *Span_TimeEvents) String() string
type Span_TimeEvents_builder ¶
type Span_TimeEvents_builder struct {
// A collection of `TimeEvent`s.
TimeEvent []*Span_TimeEvent
// The number of dropped annotations in all the included time events.
// If the value is 0, then no annotations were dropped.
DroppedAnnotationsCount int32
// 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
// contains filtered or unexported fields
}
func (Span_TimeEvents_builder) Build ¶
func (b0 Span_TimeEvents_builder) Build() *Span_TimeEvents
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) 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) SetEntries ¶
func (x *Span_Tracestate) SetEntries(v []*Span_Tracestate_Entry)
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) 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) SetKey ¶
func (x *Span_Tracestate_Entry) SetKey(v string)
func (*Span_Tracestate_Entry) SetValue ¶
func (x *Span_Tracestate_Entry) SetValue(v string)
func (*Span_Tracestate_Entry) String ¶
func (x *Span_Tracestate_Entry) String() string
type Span_Tracestate_Entry_builder ¶
type Span_Tracestate_Entry_builder 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
// 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
// contains filtered or unexported fields
}
func (Span_Tracestate_Entry_builder) Build ¶
func (b0 Span_Tracestate_Entry_builder) Build() *Span_Tracestate_Entry
type Span_Tracestate_builder ¶
type Span_Tracestate_builder struct {
// A list of entries that represent the Tracestate.
Entries []*Span_Tracestate_Entry
// contains filtered or unexported fields
}
func (Span_Tracestate_builder) Build ¶
func (b0 Span_Tracestate_builder) Build() *Span_Tracestate
type Span_builder ¶
type Span_builder 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
// 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
// The Tracestate on the span.
Tracestate *Span_Tracestate
// 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
// 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
// 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
// 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
// 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
// A set of attributes on the span.
Attributes *Span_Attributes
// A stack trace captured at the start of the span.
StackTrace *StackTrace
// The included time events.
TimeEvents *Span_TimeEvents
// The included links.
Links *Span_Links
// 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
// 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
// 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
// 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
// contains filtered or unexported fields
}
func (Span_builder) Build ¶
func (b0 Span_builder) Build() *Span
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) ClearStackFrames ¶
func (x *StackTrace) ClearStackFrames()
func (*StackTrace) GetStackFrames ¶
func (x *StackTrace) GetStackFrames() *StackTrace_StackFrames
func (*StackTrace) GetStackTraceHashId ¶
func (x *StackTrace) GetStackTraceHashId() uint64
func (*StackTrace) HasStackFrames ¶
func (x *StackTrace) HasStackFrames() bool
func (*StackTrace) ProtoMessage ¶
func (*StackTrace) ProtoMessage()
func (*StackTrace) ProtoReflect ¶
func (x *StackTrace) ProtoReflect() protoreflect.Message
func (*StackTrace) Reset ¶
func (x *StackTrace) Reset()
func (*StackTrace) SetStackFrames ¶
func (x *StackTrace) SetStackFrames(v *StackTrace_StackFrames)
func (*StackTrace) SetStackTraceHashId ¶
func (x *StackTrace) SetStackTraceHashId(v uint64)
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) ClearFileName ¶
func (x *StackTrace_StackFrame) ClearFileName()
func (*StackTrace_StackFrame) ClearFunctionName ¶
func (x *StackTrace_StackFrame) ClearFunctionName()
func (*StackTrace_StackFrame) ClearLoadModule ¶
func (x *StackTrace_StackFrame) ClearLoadModule()
func (*StackTrace_StackFrame) ClearOriginalFunctionName ¶
func (x *StackTrace_StackFrame) ClearOriginalFunctionName()
func (*StackTrace_StackFrame) ClearSourceVersion ¶
func (x *StackTrace_StackFrame) ClearSourceVersion()
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) HasFileName ¶
func (x *StackTrace_StackFrame) HasFileName() bool
func (*StackTrace_StackFrame) HasFunctionName ¶
func (x *StackTrace_StackFrame) HasFunctionName() bool
func (*StackTrace_StackFrame) HasLoadModule ¶
func (x *StackTrace_StackFrame) HasLoadModule() bool
func (*StackTrace_StackFrame) HasOriginalFunctionName ¶
func (x *StackTrace_StackFrame) HasOriginalFunctionName() bool
func (*StackTrace_StackFrame) HasSourceVersion ¶
func (x *StackTrace_StackFrame) HasSourceVersion() bool
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) SetColumnNumber ¶
func (x *StackTrace_StackFrame) SetColumnNumber(v int64)
func (*StackTrace_StackFrame) SetFileName ¶
func (x *StackTrace_StackFrame) SetFileName(v *TruncatableString)
func (*StackTrace_StackFrame) SetFunctionName ¶
func (x *StackTrace_StackFrame) SetFunctionName(v *TruncatableString)
func (*StackTrace_StackFrame) SetLineNumber ¶
func (x *StackTrace_StackFrame) SetLineNumber(v int64)
func (*StackTrace_StackFrame) SetLoadModule ¶
func (x *StackTrace_StackFrame) SetLoadModule(v *Module)
func (*StackTrace_StackFrame) SetOriginalFunctionName ¶
func (x *StackTrace_StackFrame) SetOriginalFunctionName(v *TruncatableString)
func (*StackTrace_StackFrame) SetSourceVersion ¶
func (x *StackTrace_StackFrame) SetSourceVersion(v *TruncatableString)
func (*StackTrace_StackFrame) String ¶
func (x *StackTrace_StackFrame) String() string
type StackTrace_StackFrame_builder ¶
type StackTrace_StackFrame_builder struct {
// The fully-qualified name that uniquely identifies the function or
// method that is active in this frame.
FunctionName *TruncatableString
// 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
// The name of the source file where the function call appears.
FileName *TruncatableString
// The line number in `file_name` where the function call appears.
LineNumber int64
// The column number where the function call appears, if available.
// This is important in JavaScript because of its anonymous functions.
ColumnNumber int64
// The binary module from where the code was loaded.
LoadModule *Module
// The version of the deployed source code.
SourceVersion *TruncatableString
// contains filtered or unexported fields
}
func (StackTrace_StackFrame_builder) Build ¶
func (b0 StackTrace_StackFrame_builder) Build() *StackTrace_StackFrame
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) 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) SetDroppedFramesCount ¶
func (x *StackTrace_StackFrames) SetDroppedFramesCount(v int32)
func (*StackTrace_StackFrames) SetFrame ¶
func (x *StackTrace_StackFrames) SetFrame(v []*StackTrace_StackFrame)
func (*StackTrace_StackFrames) String ¶
func (x *StackTrace_StackFrames) String() string
type StackTrace_StackFrames_builder ¶
type StackTrace_StackFrames_builder struct {
// Stack frames in this call stack.
Frame []*StackTrace_StackFrame
// 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
// contains filtered or unexported fields
}
func (StackTrace_StackFrames_builder) Build ¶
func (b0 StackTrace_StackFrames_builder) Build() *StackTrace_StackFrames
type StackTrace_builder ¶
type StackTrace_builder struct {
// Stack frames in this stack trace.
StackFrames *StackTrace_StackFrames
// 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
// contains filtered or unexported fields
}
func (StackTrace_builder) Build ¶
func (b0 StackTrace_builder) Build() *StackTrace
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) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type Status_builder ¶
type Status_builder struct {
// The status code. This is optional field. It is safe to assume 0 (OK)
// when not set.
Code int32
// A developer-facing error message, which should be in English.
Message string
// contains filtered or unexported fields
}
func (Status_builder) Build ¶
func (b0 Status_builder) Build() *Status
type TraceConfig ¶
type TraceConfig struct {
// The global default sampler used to make decisions on span sampling.
//
// Types that are valid to be assigned 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) ClearConstantSampler ¶
func (x *TraceConfig) ClearConstantSampler()
func (*TraceConfig) ClearProbabilitySampler ¶
func (x *TraceConfig) ClearProbabilitySampler()
func (*TraceConfig) ClearRateLimitingSampler ¶
func (x *TraceConfig) ClearRateLimitingSampler()
func (*TraceConfig) ClearSampler ¶
func (x *TraceConfig) ClearSampler()
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 (*TraceConfig) GetMaxNumberOfLinks ¶
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 (x *TraceConfig) GetSampler() isTraceConfig_Sampler
func (*TraceConfig) HasConstantSampler ¶
func (x *TraceConfig) HasConstantSampler() bool
func (*TraceConfig) HasProbabilitySampler ¶
func (x *TraceConfig) HasProbabilitySampler() bool
func (*TraceConfig) HasRateLimitingSampler ¶
func (x *TraceConfig) HasRateLimitingSampler() bool
func (*TraceConfig) HasSampler ¶
func (x *TraceConfig) HasSampler() bool
func (*TraceConfig) ProtoMessage ¶
func (*TraceConfig) ProtoMessage()
func (*TraceConfig) ProtoReflect ¶
func (x *TraceConfig) ProtoReflect() protoreflect.Message
func (*TraceConfig) Reset ¶
func (x *TraceConfig) Reset()
func (*TraceConfig) SetConstantSampler ¶
func (x *TraceConfig) SetConstantSampler(v *ConstantSampler)
func (*TraceConfig) SetMaxNumberOfAnnotations ¶
func (x *TraceConfig) SetMaxNumberOfAnnotations(v int64)
func (*TraceConfig) SetMaxNumberOfAttributes ¶
func (x *TraceConfig) SetMaxNumberOfAttributes(v int64)
func (*TraceConfig) SetMaxNumberOfLinks ¶
func (x *TraceConfig) SetMaxNumberOfLinks(v int64)
func (*TraceConfig) SetMaxNumberOfMessageEvents ¶
func (x *TraceConfig) SetMaxNumberOfMessageEvents(v int64)
func (*TraceConfig) SetProbabilitySampler ¶
func (x *TraceConfig) SetProbabilitySampler(v *ProbabilitySampler)
func (*TraceConfig) SetRateLimitingSampler ¶
func (x *TraceConfig) SetRateLimitingSampler(v *RateLimitingSampler)
func (*TraceConfig) String ¶
func (x *TraceConfig) String() string
func (*TraceConfig) WhichSampler ¶
func (x *TraceConfig) WhichSampler() case_TraceConfig_Sampler
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 TraceConfig_builder ¶
type TraceConfig_builder struct {
// Fields of oneof Sampler:
ProbabilitySampler *ProbabilitySampler
ConstantSampler *ConstantSampler
RateLimitingSampler *RateLimitingSampler
// -- end of Sampler
// The global default max number of attributes per span.
MaxNumberOfAttributes int64
// The global default max number of annotation events per span.
MaxNumberOfAnnotations int64
// The global default max number of message events per span.
MaxNumberOfMessageEvents int64
// The global default max number of link entries per span.
MaxNumberOfLinks int64
// contains filtered or unexported fields
}
func (TraceConfig_builder) Build ¶
func (b0 TraceConfig_builder) Build() *TraceConfig
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) 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) SetTruncatedByteCount ¶
func (x *TruncatableString) SetTruncatedByteCount(v int32)
func (*TruncatableString) SetValue ¶
func (x *TruncatableString) SetValue(v string)
func (*TruncatableString) String ¶
func (x *TruncatableString) String() string
type TruncatableString_builder ¶
type TruncatableString_builder 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
// The number of bytes removed from the original string. If this
// value is 0, then the string was not shortened.
TruncatedByteCount int32
// contains filtered or unexported fields
}
func (TruncatableString_builder) Build ¶
func (b0 TruncatableString_builder) Build() *TruncatableString
Source Files
¶
- trace.pb.go
- trace_config.pb.go