Documentation ¶
Index ¶
- Variables
- type Span
- func (*Span) Descriptor() ([]byte, []int)deprecated
- func (x *Span) GetAttributes() map[string]string
- func (x *Span) GetEndTimeUnixNano() uint64
- func (x *Span) GetName() string
- func (x *Span) GetParentSpanID() string
- func (x *Span) GetRelations() *pb.Relation
- func (x *Span) GetSpanID() string
- func (x *Span) GetStartTimeUnixNano() uint64
- func (x *Span) GetTraceID() string
- func (m *Span) MarshalJSON() ([]byte, error)
- func (*Span) ProtoMessage()
- func (x *Span) ProtoReflect() protoreflect.Message
- func (x *Span) Reset()
- func (x *Span) String() string
- func (m *Span) UnmarshalJSON(b []byte) error
- func (m *Span) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *Span) Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var File_tracing_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
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 string `protobuf:"bytes,1,opt,name=traceID,proto3" json:"traceID,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 string `protobuf:"bytes,2,opt,name=spanID,proto3" json:"spanID,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 string `protobuf:"bytes,3,opt,name=parentSpanID,proto3" json:"parentSpanID,omitempty"` StartTimeUnixNano uint64 `protobuf:"fixed64,4,opt,name=startTimeUnixNano,proto3" json:"startTimeUnixNano,omitempty"` // end_time_unix_nano is the end time of the span. On the client side, this is the time // kept by the local machine where the span execution ends. On the server side, this // is the time when the server application handler stops running. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // // This field is semantically required and it is expected that end_time >= start_time. EndTimeUnixNano uint64 `protobuf:"fixed64,5,opt,name=endTimeUnixNano,proto3" json:"endTimeUnixNano,omitempty"` // A description of the span's operation. // // For example, the name can be a qualified method name or a file name // and a line number where the operation is called. A best practice is to use // the same display name at the same call point in an application. // This makes it easier to correlate spans in different traces. // // This field is semantically required to be set to non-empty string. // When null or empty string received - receiver may use string "name" // as a replacement. There might be smarted algorithms implemented by // receiver to fix the empty span name. // // This field is required. Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // Store trace and resource pointer Relations *pb.Relation `protobuf:"bytes,7,opt,name=relations,proto3" json:"relations,omitempty"` // Including label, attributes and resource Attributes map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
The span data model
of the observability analysis platform.
Trace is calculated by span, stored as metric.
func (*Span) Descriptor
deprecated
func (*Span) GetAttributes ¶
func (*Span) GetEndTimeUnixNano ¶
func (*Span) GetParentSpanID ¶
func (*Span) GetRelations ¶
func (*Span) GetStartTimeUnixNano ¶
func (*Span) GetTraceID ¶
func (*Span) MarshalJSON ¶
Span implement json.Marshaler.
func (*Span) ProtoMessage ¶
func (*Span) ProtoMessage()
func (*Span) ProtoReflect ¶
func (x *Span) ProtoReflect() protoreflect.Message
func (*Span) UnmarshalJSON ¶
Span implement json.Marshaler.
func (*Span) UnmarshalURLValues ¶
Span implement urlenc.URLValuesUnmarshaler.
Click to show internal directories.
Click to hide internal directories.