package wire
import "github.com/influxdata/influxdb/pkg/tracing/wire"
Package wire is used to serialize a trace.
Index ¶
- Variables
- type Field
- func (*Field) Descriptor() ([]byte, []int)
- 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
- func (FieldType) Descriptor() protoreflect.EnumDescriptor
- func (x FieldType) Enum() *FieldType
- func (FieldType) EnumDescriptor() ([]byte, []int)
- func (x FieldType) Number() protoreflect.EnumNumber
- func (x FieldType) String() string
- func (FieldType) Type() protoreflect.EnumType
- type Field_NumericVal
- type Field_StringVal
- type Span
- func (*Span) Descriptor() ([]byte, []int)
- 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)
- 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
Variables ¶
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.
var File_binary_proto protoreflect.FileDescriptor
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: Use Field.ProtoReflect.Descriptor instead.
func (*Field) GetFieldType ¶
func (*Field) GetKey ¶
func (*Field) GetNumericVal ¶
func (*Field) GetStringVal ¶
func (*Field) GetValue ¶
func (m *Field) GetValue() isField_Value
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
func (*Field) Reset ¶
func (x *Field) Reset()
func (*Field) String ¶
type FieldType ¶
type FieldType int32
const ( FieldType_FieldTypeString FieldType = 0 FieldType_FieldTypeBool FieldType = 1 FieldType_FieldTypeInt64 FieldType = 2 FieldType_FieldTypeUint64 FieldType = 3 FieldType_FieldTypeDuration FieldType = 4 FieldType_FieldTypeFloat64 FieldType = 6 )
func (FieldType) Descriptor ¶
func (FieldType) Descriptor() protoreflect.EnumDescriptor
func (FieldType) Enum ¶
func (FieldType) EnumDescriptor ¶
Deprecated: Use FieldType.Descriptor instead.
func (FieldType) Number ¶
func (x FieldType) Number() protoreflect.EnumNumber
func (FieldType) String ¶
func (FieldType) Type ¶
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"` 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"` Labels []string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"` Fields []*Field `protobuf:"bytes,6,rep,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*Span) Descriptor ¶
Deprecated: Use Span.ProtoReflect.Descriptor instead.
func (*Span) GetContext ¶
func (x *Span) GetContext() *SpanContext
func (*Span) GetFields ¶
func (*Span) GetLabels ¶
func (*Span) GetName ¶
func (*Span) GetParentSpanID ¶
func (*Span) GetStart ¶
func (x *Span) GetStart() *timestamppb.Timestamp
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 ¶
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 ¶
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 ¶
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: Use Trace.ProtoReflect.Descriptor instead.
func (*Trace) GetSpans ¶
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
func (*Trace) ProtoReflect ¶
func (x *Trace) ProtoReflect() protoreflect.Message
func (*Trace) Reset ¶
func (x *Trace) Reset()
func (*Trace) String ¶
Source Files ¶
- Version
- v1.12.0 (latest)
- Published
- Apr 8, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 2 days ago –
Tools for package owners.