pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 18 Imported by: 5

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Span.ProtoReflect.Descriptor instead.

func (*Span) GetAttributes

func (x *Span) GetAttributes() map[string]string

func (*Span) GetEndTimeUnixNano

func (x *Span) GetEndTimeUnixNano() uint64

func (*Span) GetName

func (x *Span) GetName() string

func (*Span) GetParentSpanID

func (x *Span) GetParentSpanID() string

func (*Span) GetRelations

func (x *Span) GetRelations() *pb.Relation

func (*Span) GetSpanID

func (x *Span) GetSpanID() string

func (*Span) GetStartTimeUnixNano

func (x *Span) GetStartTimeUnixNano() uint64

func (*Span) GetTraceID

func (x *Span) GetTraceID() string

func (*Span) MarshalJSON

func (m *Span) MarshalJSON() ([]byte, error)

Span implement json.Marshaler.

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) ProtoReflect

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

func (*Span) Reset

func (x *Span) Reset()

func (*Span) String

func (x *Span) String() string

func (*Span) UnmarshalJSON

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

Span implement json.Marshaler.

func (*Span) UnmarshalURLValues

func (m *Span) UnmarshalURLValues(prefix string, values url.Values) error

Span implement urlenc.URLValuesUnmarshaler.

func (*Span) Validate

func (this *Span) Validate() error

Jump to

Keyboard shortcuts

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