Documentation ¶
Overview ¶
Package wire is used to serialize a trace.
Package wire is a generated protocol buffer package. It is generated from these files: binary.proto It has these top-level messages: SpanContext Span Trace Field
Index ¶
- Variables
- type Field
- func (*Field) Descriptor() ([]byte, []int)
- func (m *Field) GetFieldType() Field_FieldType
- func (m *Field) GetKey() string
- func (m *Field) GetNumericVal() int64
- func (m *Field) GetStringVal() string
- func (m *Field) GetValue() isField_Value
- func (m *Field) Marshal() (dAtA []byte, err error)
- func (m *Field) MarshalTo(dAtA []byte) (int, error)
- func (*Field) ProtoMessage()
- func (m *Field) Reset()
- func (m *Field) Size() (n int)
- func (m *Field) String() string
- func (m *Field) Unmarshal(dAtA []byte) error
- func (*Field) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Field_FieldType
- type Field_NumericVal
- type Field_StringVal
- type Span
- func (*Span) Descriptor() ([]byte, []int)
- func (m *Span) GetContext() SpanContext
- func (m *Span) GetFields() []Field
- func (m *Span) GetLabels() []string
- func (m *Span) GetName() string
- func (m *Span) GetParentSpanID() uint64
- func (m *Span) GetStart() time.Time
- func (m *Span) Marshal() (dAtA []byte, err error)
- func (m *Span) MarshalTo(dAtA []byte) (int, error)
- func (*Span) ProtoMessage()
- func (m *Span) Reset()
- func (m *Span) Size() (n int)
- func (m *Span) String() string
- func (m *Span) Unmarshal(dAtA []byte) error
- type SpanContext
- func (*SpanContext) Descriptor() ([]byte, []int)
- func (m *SpanContext) GetSpanID() uint64
- func (m *SpanContext) GetTraceID() uint64
- func (m *SpanContext) Marshal() (dAtA []byte, err error)
- func (m *SpanContext) MarshalTo(dAtA []byte) (int, error)
- func (*SpanContext) ProtoMessage()
- func (m *SpanContext) Reset()
- func (m *SpanContext) Size() (n int)
- func (m *SpanContext) String() string
- func (m *SpanContext) Unmarshal(dAtA []byte) error
- type Trace
- func (*Trace) Descriptor() ([]byte, []int)
- func (m *Trace) GetSpans() []*Span
- func (m *Trace) Marshal() (dAtA []byte, err error)
- func (m *Trace) MarshalTo(dAtA []byte) (int, error)
- func (*Trace) ProtoMessage()
- func (m *Trace) Reset()
- func (m *Trace) Size() (n int)
- func (m *Trace) String() string
- func (m *Trace) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthBinary = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBinary = fmt.Errorf("proto: integer overflow") )
View Source
var Field_FieldType_name = map[int32]string{
0: "STRING",
1: "BOOL",
2: "INT_64",
3: "UINT_64",
4: "DURATION",
6: "FLOAT_64",
}
View Source
var Field_FieldType_value = map[string]int32{
"STRING": 0,
"BOOL": 1,
"INT_64": 2,
"UINT_64": 3,
"DURATION": 4,
"FLOAT_64": 6,
}
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` FieldType Field_FieldType `protobuf:"varint,2,opt,name=field_type,json=fieldType,proto3,enum=wire.Field_FieldType" json:"field_type,omitempty"` // Types that are valid to be assigned to Value: // *Field_NumericVal // *Field_StringVal Value isField_Value `protobuf_oneof:"value"` }
func (*Field) Descriptor ¶
func (*Field) GetFieldType ¶
func (m *Field) GetFieldType() Field_FieldType
func (*Field) GetNumericVal ¶
func (*Field) GetStringVal ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
type Field_FieldType ¶
type Field_FieldType int32
const ( FieldTypeString Field_FieldType = 0 FieldTypeBool Field_FieldType = 1 FieldTypeInt64 Field_FieldType = 2 FieldTypeUint64 Field_FieldType = 3 FieldTypeDuration Field_FieldType = 4 FieldTypeFloat64 Field_FieldType = 6 )
func (Field_FieldType) EnumDescriptor ¶
func (Field_FieldType) EnumDescriptor() ([]byte, []int)
func (Field_FieldType) String ¶
func (x Field_FieldType) String() string
type Field_NumericVal ¶
type Field_NumericVal struct {
NumericVal int64 `protobuf:"fixed64,3,opt,name=numeric_val,json=numericVal,proto3,oneof"`
}
func (*Field_NumericVal) Size ¶
func (m *Field_NumericVal) Size() (n int)
type Field_StringVal ¶
type Field_StringVal struct {
StringVal string `protobuf:"bytes,4,opt,name=string_val,json=stringVal,proto3,oneof"`
}
func (*Field_StringVal) Size ¶
func (m *Field_StringVal) Size() (n int)
type Span ¶
type Span struct { Context SpanContext `protobuf:"bytes,1,opt,name=context" json:"context"` ParentSpanID uint64 `protobuf:"varint,2,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Start time.Time `protobuf:"bytes,4,opt,name=start_time,json=startTime,stdtime" json:"start_time"` Labels []string `protobuf:"bytes,5,rep,name=labels" json:"labels,omitempty"` Fields []Field `protobuf:"bytes,6,rep,name=fields" json:"fields"` }
func (*Span) Descriptor ¶
func (*Span) GetContext ¶
func (m *Span) GetContext() SpanContext
func (*Span) GetParentSpanID ¶
func (*Span) ProtoMessage ¶
func (*Span) ProtoMessage()
type SpanContext ¶
type SpanContext struct { TraceID uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` SpanID uint64 `protobuf:"varint,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` }
func (*SpanContext) Descriptor ¶
func (*SpanContext) Descriptor() ([]byte, []int)
func (*SpanContext) GetSpanID ¶
func (m *SpanContext) GetSpanID() uint64
func (*SpanContext) GetTraceID ¶
func (m *SpanContext) GetTraceID() uint64
func (*SpanContext) Marshal ¶
func (m *SpanContext) Marshal() (dAtA []byte, err error)
func (*SpanContext) ProtoMessage ¶
func (*SpanContext) ProtoMessage()
func (*SpanContext) Reset ¶
func (m *SpanContext) Reset()
func (*SpanContext) Size ¶
func (m *SpanContext) Size() (n int)
func (*SpanContext) String ¶
func (m *SpanContext) String() string
func (*SpanContext) Unmarshal ¶
func (m *SpanContext) Unmarshal(dAtA []byte) error
type Trace ¶
type Trace struct {
Spans []*Span `protobuf:"bytes,1,rep,name=spans" json:"spans,omitempty"`
}
func (*Trace) Descriptor ¶
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.