wire

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package wire is used to serialize a trace.

Index

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) 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 added in v2.2.0

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

type FieldType added in v2.2.0

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 added in v2.2.0

func (FieldType) Descriptor() protoreflect.EnumDescriptor

func (FieldType) Enum added in v2.2.0

func (x FieldType) Enum() *FieldType

func (FieldType) EnumDescriptor deprecated added in v2.2.0

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

Deprecated: Use FieldType.Descriptor instead.

func (FieldType) Number added in v2.2.0

func (x FieldType) Number() protoreflect.EnumNumber

func (FieldType) String added in v2.2.0

func (x FieldType) String() string

func (FieldType) Type added in v2.2.0

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) 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 added in v2.2.0

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 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) 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 added in v2.2.0

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

func (*Trace) Reset

func (x *Trace) Reset()

func (*Trace) String

func (x *Trace) String() string

Jump to

Keyboard shortcuts

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