package wire

import "github.com/influxdata/influxdb/pkg/tracing/wire"

Package wire is used to serialize a trace.

Index

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

func (*Field) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetFieldType

func (x *Field) GetFieldType() FieldType

func (*Field) GetKey

func (x *Field) GetKey() string

func (*Field) GetNumericVal

func (x *Field) GetNumericVal() int64

func (*Field) GetStringVal

func (x *Field) GetStringVal() string

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

func (x *Field) String() 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 (x FieldType) Enum() *FieldType

func (FieldType) EnumDescriptor

func (FieldType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FieldType.Descriptor instead.

func (FieldType) Number

func (x FieldType) Number() protoreflect.EnumNumber

func (FieldType) String

func (x FieldType) String() string

func (FieldType) Type

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

func (*Span) Descriptor() ([]byte, []int)

Deprecated: Use Span.ProtoReflect.Descriptor instead.

func (*Span) GetContext

func (x *Span) GetContext() *SpanContext

func (*Span) GetFields

func (x *Span) GetFields() []*Field

func (*Span) GetLabels

func (x *Span) GetLabels() []string

func (*Span) GetName

func (x *Span) GetName() string

func (*Span) GetParentSpanID

func (x *Span) GetParentSpanID() uint64

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

func (x *Span) String() 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

func (*Trace) Descriptor() ([]byte, []int)

Deprecated: Use Trace.ProtoReflect.Descriptor instead.

func (*Trace) GetSpans

func (x *Trace) GetSpans() []*Span

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

func (x *Trace) String() string

Source Files

binary.go binary.pb.go

Version
v1.12.0 (latest)
Published
Apr 8, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
2 days ago

Tools for package owners.