Documentation ¶
Overview ¶
Package wire is used to serialize a trace.
Index ¶
- Variables
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetFieldType() FieldType
- func (x *Field) GetKey() string
- func (x *Field) GetNumericVal() int64
- func (x *Field) GetStringVal() string
- func (m *Field) GetValue() isField_Value
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type FieldType
- type Field_NumericVal
- type Field_StringVal
- type Span
- func (*Span) Descriptor() ([]byte, []int)deprecated
- func (x *Span) GetContext() *SpanContext
- func (x *Span) GetFields() []*Field
- func (x *Span) GetLabels() []string
- func (x *Span) GetName() string
- func (x *Span) GetParentSpanID() uint64
- func (x *Span) GetStart() *timestamppb.Timestamp
- func (*Span) ProtoMessage()
- func (x *Span) ProtoReflect() protoreflect.Message
- func (x *Span) Reset()
- func (x *Span) String() string
- type SpanContext
- func (*SpanContext) Descriptor() ([]byte, []int)deprecated
- func (x *SpanContext) GetSpanID() uint64
- func (x *SpanContext) GetTraceID() uint64
- func (*SpanContext) ProtoMessage()
- func (x *SpanContext) ProtoReflect() protoreflect.Message
- func (x *SpanContext) Reset()
- func (x *SpanContext) String() string
- type Trace
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FieldType_name = map[int32]string{ 0: "FieldTypeString", 1: "FieldTypeBool", 2: "FieldTypeInt64", 3: "FieldTypeUint64", 4: "FieldTypeDuration", 6: "FieldTypeFloat64", } FieldType_value = map[string]int32{ "FieldTypeString": 0, "FieldTypeBool": 1, "FieldTypeInt64": 2, "FieldTypeUint64": 3, "FieldTypeDuration": 4, "FieldTypeFloat64": 6, } )
Enum value maps for FieldType.
View Source
var File_binary_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` FieldType FieldType `protobuf:"varint,2,opt,name=FieldType,proto3,enum=wire.FieldType" json:"FieldType,omitempty"` // Types that are assignable to Value: // *Field_NumericVal // *Field_StringVal Value isField_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*Field) Descriptor
deprecated
func (*Field) GetFieldType ¶
func (*Field) GetNumericVal ¶
func (*Field) GetStringVal ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶ added in v2.2.0
func (x *Field) ProtoReflect() protoreflect.Message
type FieldType ¶ added in v2.2.0
type FieldType int32
func (FieldType) Descriptor ¶ added in v2.2.0
func (FieldType) Descriptor() protoreflect.EnumDescriptor
func (FieldType) EnumDescriptor
deprecated
added in
v2.2.0
func (FieldType) Number ¶ added in v2.2.0
func (x FieldType) Number() protoreflect.EnumNumber
func (FieldType) Type ¶ added in v2.2.0
func (FieldType) Type() protoreflect.EnumType
type Field_NumericVal ¶
type Field_NumericVal struct {
NumericVal int64 `protobuf:"fixed64,3,opt,name=NumericVal,proto3,oneof"`
}
type Field_StringVal ¶
type Field_StringVal struct {
StringVal string `protobuf:"bytes,4,opt,name=StringVal,proto3,oneof"`
}
type Span ¶
type Span struct { Context *SpanContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // [(gogoproto.nullable) = false]; ParentSpanID uint64 `protobuf:"varint,2,opt,name=ParentSpanID,proto3" json:"ParentSpanID,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Start *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=Start,proto3" json:"Start,omitempty"` // [(gogoproto.customname) = "Start", (gogoproto.stdtime) = true, (gogoproto.nullable) = false]; Labels []string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"` Fields []*Field `protobuf:"bytes,6,rep,name=fields,proto3" json:"fields,omitempty"` // [(gogoproto.nullable) = false]; // contains filtered or unexported fields }
func (*Span) Descriptor
deprecated
func (*Span) GetContext ¶
func (x *Span) GetContext() *SpanContext
func (*Span) GetParentSpanID ¶
func (*Span) GetStart ¶
func (x *Span) GetStart() *timestamppb.Timestamp
func (*Span) ProtoMessage ¶
func (*Span) ProtoMessage()
func (*Span) ProtoReflect ¶ added in v2.2.0
func (x *Span) ProtoReflect() protoreflect.Message
type SpanContext ¶
type SpanContext struct { TraceID uint64 `protobuf:"varint,1,opt,name=TraceID,proto3" json:"TraceID,omitempty"` SpanID uint64 `protobuf:"varint,2,opt,name=SpanID,proto3" json:"SpanID,omitempty"` // contains filtered or unexported fields }
func (*SpanContext) Descriptor
deprecated
func (*SpanContext) Descriptor() ([]byte, []int)
Deprecated: Use SpanContext.ProtoReflect.Descriptor instead.
func (*SpanContext) GetSpanID ¶
func (x *SpanContext) GetSpanID() uint64
func (*SpanContext) GetTraceID ¶
func (x *SpanContext) GetTraceID() uint64
func (*SpanContext) ProtoMessage ¶
func (*SpanContext) ProtoMessage()
func (*SpanContext) ProtoReflect ¶ added in v2.2.0
func (x *SpanContext) ProtoReflect() protoreflect.Message
func (*SpanContext) Reset ¶
func (x *SpanContext) Reset()
func (*SpanContext) String ¶
func (x *SpanContext) String() string
type Trace ¶
type Trace struct { Spans []*Span `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"` // contains filtered or unexported fields }
func (*Trace) Descriptor
deprecated
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
func (*Trace) ProtoReflect ¶ added in v2.2.0
func (x *Trace) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.