v1

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCommon        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommon          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCommon = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type AnyValue added in v0.5.0

type AnyValue struct {
	// The value is one of the listed fields. It is valid for all values to be unspecified
	// in which case this AnyValue is considered to be "null".
	//
	// Types that are valid to be assigned to Value:
	//	*AnyValue_StringValue
	//	*AnyValue_BoolValue
	//	*AnyValue_IntValue
	//	*AnyValue_DoubleValue
	//	*AnyValue_ArrayValue
	//	*AnyValue_KvlistValue
	Value isAnyValue_Value `protobuf_oneof:"value"`
}

AnyValue is used to represent any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and primitives.

func (*AnyValue) Descriptor added in v0.5.0

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

func (*AnyValue) GetArrayValue added in v0.5.0

func (m *AnyValue) GetArrayValue() *ArrayValue

func (*AnyValue) GetBoolValue added in v0.5.0

func (m *AnyValue) GetBoolValue() bool

func (*AnyValue) GetDoubleValue added in v0.5.0

func (m *AnyValue) GetDoubleValue() float64

func (*AnyValue) GetIntValue added in v0.5.0

func (m *AnyValue) GetIntValue() int64

func (*AnyValue) GetKvlistValue added in v0.5.0

func (m *AnyValue) GetKvlistValue() *KeyValueList

func (*AnyValue) GetStringValue added in v0.5.0

func (m *AnyValue) GetStringValue() string

func (*AnyValue) GetValue added in v0.5.0

func (m *AnyValue) GetValue() isAnyValue_Value

func (*AnyValue) Marshal added in v0.5.0

func (m *AnyValue) Marshal() (dAtA []byte, err error)

func (*AnyValue) MarshalTo added in v0.5.0

func (m *AnyValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue) MarshalToSizedBuffer added in v0.5.0

func (m *AnyValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue) ProtoMessage added in v0.5.0

func (*AnyValue) ProtoMessage()

func (*AnyValue) Reset added in v0.5.0

func (m *AnyValue) Reset()

func (*AnyValue) Size added in v0.5.0

func (m *AnyValue) Size() (n int)

func (*AnyValue) String added in v0.5.0

func (m *AnyValue) String() string

func (*AnyValue) Unmarshal added in v0.5.0

func (m *AnyValue) Unmarshal(dAtA []byte) error

func (*AnyValue) XXX_DiscardUnknown added in v0.5.0

func (m *AnyValue) XXX_DiscardUnknown()

func (*AnyValue) XXX_Marshal added in v0.5.0

func (m *AnyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnyValue) XXX_Merge added in v0.5.0

func (m *AnyValue) XXX_Merge(src proto.Message)

func (*AnyValue) XXX_OneofWrappers added in v0.5.0

func (*AnyValue) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*AnyValue) XXX_Size added in v0.5.0

func (m *AnyValue) XXX_Size() int

func (*AnyValue) XXX_Unmarshal added in v0.5.0

func (m *AnyValue) XXX_Unmarshal(b []byte) error

type AnyValue_ArrayValue added in v0.5.0

type AnyValue_ArrayValue struct {
	ArrayValue *ArrayValue `protobuf:"bytes,5,opt,name=array_value,json=arrayValue,proto3,oneof" json:"array_value,omitempty"`
}

func (*AnyValue_ArrayValue) MarshalTo added in v0.5.0

func (m *AnyValue_ArrayValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_ArrayValue) MarshalToSizedBuffer added in v0.5.0

func (m *AnyValue_ArrayValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_ArrayValue) Size added in v0.5.0

func (m *AnyValue_ArrayValue) Size() (n int)

type AnyValue_BoolValue added in v0.5.0

type AnyValue_BoolValue struct {
	BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty"`
}

func (*AnyValue_BoolValue) MarshalTo added in v0.5.0

func (m *AnyValue_BoolValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_BoolValue) MarshalToSizedBuffer added in v0.5.0

func (m *AnyValue_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_BoolValue) Size added in v0.5.0

func (m *AnyValue_BoolValue) Size() (n int)

type AnyValue_DoubleValue added in v0.5.0

type AnyValue_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof" json:"double_value,omitempty"`
}

func (*AnyValue_DoubleValue) MarshalTo added in v0.5.0

func (m *AnyValue_DoubleValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_DoubleValue) MarshalToSizedBuffer added in v0.5.0

func (m *AnyValue_DoubleValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_DoubleValue) Size added in v0.5.0

func (m *AnyValue_DoubleValue) Size() (n int)

type AnyValue_IntValue added in v0.5.0

type AnyValue_IntValue struct {
	IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof" json:"int_value,omitempty"`
}

func (*AnyValue_IntValue) MarshalTo added in v0.5.0

func (m *AnyValue_IntValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_IntValue) MarshalToSizedBuffer added in v0.5.0

func (m *AnyValue_IntValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_IntValue) Size added in v0.5.0

func (m *AnyValue_IntValue) Size() (n int)

type AnyValue_KvlistValue added in v0.5.0

type AnyValue_KvlistValue struct {
	KvlistValue *KeyValueList `protobuf:"bytes,6,opt,name=kvlist_value,json=kvlistValue,proto3,oneof" json:"kvlist_value,omitempty"`
}

func (*AnyValue_KvlistValue) MarshalTo added in v0.5.0

func (m *AnyValue_KvlistValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_KvlistValue) MarshalToSizedBuffer added in v0.5.0

func (m *AnyValue_KvlistValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_KvlistValue) Size added in v0.5.0

func (m *AnyValue_KvlistValue) Size() (n int)

type AnyValue_StringValue added in v0.5.0

type AnyValue_StringValue struct {
	StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"`
}

func (*AnyValue_StringValue) MarshalTo added in v0.5.0

func (m *AnyValue_StringValue) MarshalTo(dAtA []byte) (int, error)

func (*AnyValue_StringValue) MarshalToSizedBuffer added in v0.5.0

func (m *AnyValue_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnyValue_StringValue) Size added in v0.5.0

func (m *AnyValue_StringValue) Size() (n int)

type ArrayValue added in v0.5.0

type ArrayValue struct {
	// Array of values. The array may be empty (contain 0 elements).
	Values []*AnyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
}

ArrayValue is a list of AnyValue messages. We need ArrayValue as a message since oneof in AnyValue does not allow repeated fields.

func (*ArrayValue) Descriptor added in v0.5.0

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

func (*ArrayValue) GetValues added in v0.5.0

func (m *ArrayValue) GetValues() []*AnyValue

func (*ArrayValue) Marshal added in v0.5.0

func (m *ArrayValue) Marshal() (dAtA []byte, err error)

func (*ArrayValue) MarshalTo added in v0.5.0

func (m *ArrayValue) MarshalTo(dAtA []byte) (int, error)

func (*ArrayValue) MarshalToSizedBuffer added in v0.5.0

func (m *ArrayValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArrayValue) ProtoMessage added in v0.5.0

func (*ArrayValue) ProtoMessage()

func (*ArrayValue) Reset added in v0.5.0

func (m *ArrayValue) Reset()

func (*ArrayValue) Size added in v0.5.0

func (m *ArrayValue) Size() (n int)

func (*ArrayValue) String added in v0.5.0

func (m *ArrayValue) String() string

func (*ArrayValue) Unmarshal added in v0.5.0

func (m *ArrayValue) Unmarshal(dAtA []byte) error

func (*ArrayValue) XXX_DiscardUnknown added in v0.5.0

func (m *ArrayValue) XXX_DiscardUnknown()

func (*ArrayValue) XXX_Marshal added in v0.5.0

func (m *ArrayValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArrayValue) XXX_Merge added in v0.5.0

func (m *ArrayValue) XXX_Merge(src proto.Message)

func (*ArrayValue) XXX_Size added in v0.5.0

func (m *ArrayValue) XXX_Size() int

func (*ArrayValue) XXX_Unmarshal added in v0.5.0

func (m *ArrayValue) XXX_Unmarshal(b []byte) error

type InstrumentationLibrary

type InstrumentationLibrary struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
}

InstrumentationLibrary is a message representing the instrumentation library information such as the fully qualified name and version.

func (*InstrumentationLibrary) Descriptor

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

func (*InstrumentationLibrary) GetName

func (m *InstrumentationLibrary) GetName() string

func (*InstrumentationLibrary) GetVersion

func (m *InstrumentationLibrary) GetVersion() string

func (*InstrumentationLibrary) Marshal

func (m *InstrumentationLibrary) Marshal() (dAtA []byte, err error)

func (*InstrumentationLibrary) MarshalTo

func (m *InstrumentationLibrary) MarshalTo(dAtA []byte) (int, error)

func (*InstrumentationLibrary) MarshalToSizedBuffer added in v0.5.0

func (m *InstrumentationLibrary) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InstrumentationLibrary) ProtoMessage

func (*InstrumentationLibrary) ProtoMessage()

func (*InstrumentationLibrary) Reset

func (m *InstrumentationLibrary) Reset()

func (*InstrumentationLibrary) Size

func (m *InstrumentationLibrary) Size() (n int)

func (*InstrumentationLibrary) String

func (m *InstrumentationLibrary) String() string

func (*InstrumentationLibrary) Unmarshal

func (m *InstrumentationLibrary) Unmarshal(dAtA []byte) error

func (*InstrumentationLibrary) XXX_DiscardUnknown added in v0.5.0

func (m *InstrumentationLibrary) XXX_DiscardUnknown()

func (*InstrumentationLibrary) XXX_Marshal added in v0.5.0

func (m *InstrumentationLibrary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstrumentationLibrary) XXX_Merge added in v0.5.0

func (m *InstrumentationLibrary) XXX_Merge(src proto.Message)

func (*InstrumentationLibrary) XXX_Size added in v0.5.0

func (m *InstrumentationLibrary) XXX_Size() int

func (*InstrumentationLibrary) XXX_Unmarshal added in v0.5.0

func (m *InstrumentationLibrary) XXX_Unmarshal(b []byte) error

type KeyValue added in v0.5.0

type KeyValue struct {
	Key   string    `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *AnyValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

KeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc.

func (*KeyValue) Descriptor added in v0.5.0

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

func (*KeyValue) GetKey added in v0.5.0

func (m *KeyValue) GetKey() string

func (*KeyValue) GetValue added in v0.5.0

func (m *KeyValue) GetValue() *AnyValue

func (*KeyValue) Marshal added in v0.5.0

func (m *KeyValue) Marshal() (dAtA []byte, err error)

func (*KeyValue) MarshalTo added in v0.5.0

func (m *KeyValue) MarshalTo(dAtA []byte) (int, error)

func (*KeyValue) MarshalToSizedBuffer added in v0.5.0

func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyValue) ProtoMessage added in v0.5.0

func (*KeyValue) ProtoMessage()

func (*KeyValue) Reset added in v0.5.0

func (m *KeyValue) Reset()

func (*KeyValue) Size added in v0.5.0

func (m *KeyValue) Size() (n int)

func (*KeyValue) String added in v0.5.0

func (m *KeyValue) String() string

func (*KeyValue) Unmarshal added in v0.5.0

func (m *KeyValue) Unmarshal(dAtA []byte) error

func (*KeyValue) XXX_DiscardUnknown added in v0.5.0

func (m *KeyValue) XXX_DiscardUnknown()

func (*KeyValue) XXX_Marshal added in v0.5.0

func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyValue) XXX_Merge added in v0.5.0

func (m *KeyValue) XXX_Merge(src proto.Message)

func (*KeyValue) XXX_Size added in v0.5.0

func (m *KeyValue) XXX_Size() int

func (*KeyValue) XXX_Unmarshal added in v0.5.0

func (m *KeyValue) XXX_Unmarshal(b []byte) error

type KeyValueList added in v0.5.0

type KeyValueList struct {
	// A collection of key/value pairs of key-value pairs. The list may be empty (may
	// contain 0 elements).
	Values []KeyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values"`
}

KeyValueList is a list of KeyValue messages. We need KeyValueList as a message since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches are semantically equivalent.

func (*KeyValueList) Descriptor added in v0.5.0

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

func (*KeyValueList) GetValues added in v0.5.0

func (m *KeyValueList) GetValues() []KeyValue

func (*KeyValueList) Marshal added in v0.5.0

func (m *KeyValueList) Marshal() (dAtA []byte, err error)

func (*KeyValueList) MarshalTo added in v0.5.0

func (m *KeyValueList) MarshalTo(dAtA []byte) (int, error)

func (*KeyValueList) MarshalToSizedBuffer added in v0.5.0

func (m *KeyValueList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyValueList) ProtoMessage added in v0.5.0

func (*KeyValueList) ProtoMessage()

func (*KeyValueList) Reset added in v0.5.0

func (m *KeyValueList) Reset()

func (*KeyValueList) Size added in v0.5.0

func (m *KeyValueList) Size() (n int)

func (*KeyValueList) String added in v0.5.0

func (m *KeyValueList) String() string

func (*KeyValueList) Unmarshal added in v0.5.0

func (m *KeyValueList) Unmarshal(dAtA []byte) error

func (*KeyValueList) XXX_DiscardUnknown added in v0.5.0

func (m *KeyValueList) XXX_DiscardUnknown()

func (*KeyValueList) XXX_Marshal added in v0.5.0

func (m *KeyValueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyValueList) XXX_Merge added in v0.5.0

func (m *KeyValueList) XXX_Merge(src proto.Message)

func (*KeyValueList) XXX_Size added in v0.5.0

func (m *KeyValueList) XXX_Size() int

func (*KeyValueList) XXX_Unmarshal added in v0.5.0

func (m *KeyValueList) XXX_Unmarshal(b []byte) error

type SpanID added in v0.12.0

type SpanID struct {
	// contains filtered or unexported fields
}

SpanID is a custom data type that is used for all span_id fields in OTLP Protobuf messages.

func NewSpanID added in v0.12.0

func NewSpanID(bytes [8]byte) SpanID

NewSpanID creates a SpanID from a byte slice.

func (SpanID) Bytes added in v0.12.0

func (sid SpanID) Bytes() [8]byte

Bytes returns the byte array representation of the SpanID.

func (SpanID) Equal added in v0.12.0

func (sid SpanID) Equal(that SpanID) bool

Equal returns true if ids are equal.

func (SpanID) HexString added in v0.12.0

func (sid SpanID) HexString() string

HexString returns hex representation of the ID.

func (SpanID) IsValid added in v0.14.0

func (sid SpanID) IsValid() bool

IsValid returns true if id contains at least one non-zero byte.

func (SpanID) MarshalJSON added in v0.12.0

func (sid SpanID) MarshalJSON() ([]byte, error)

MarshalJSON converts SpanID into a hex string enclosed in quotes.

func (*SpanID) MarshalTo added in v0.12.0

func (sid *SpanID) MarshalTo(data []byte) (n int, err error)

MarshalTo converts trace ID into a binary representation. Called by Protobuf serialization.

func (*SpanID) Size added in v0.12.0

func (sid *SpanID) Size() int

Size returns the size of the data to serialize.

func (*SpanID) Unmarshal added in v0.12.0

func (sid *SpanID) Unmarshal(data []byte) error

Unmarshal inflates this trace ID from binary representation. Called by Protobuf serialization.

func (*SpanID) UnmarshalJSON added in v0.12.0

func (sid *SpanID) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes SpanID from hex string, possibly enclosed in quotes. Called by Protobuf JSON deserialization.

type StringKeyValue

type StringKeyValue struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

StringKeyValue is a pair of key/value strings. This is the simpler (and faster) version of KeyValue that only supports string values.

func (*StringKeyValue) Descriptor

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

func (*StringKeyValue) GetKey

func (m *StringKeyValue) GetKey() string

func (*StringKeyValue) GetValue

func (m *StringKeyValue) GetValue() string

func (*StringKeyValue) Marshal

func (m *StringKeyValue) Marshal() (dAtA []byte, err error)

func (*StringKeyValue) MarshalTo

func (m *StringKeyValue) MarshalTo(dAtA []byte) (int, error)

func (*StringKeyValue) MarshalToSizedBuffer added in v0.5.0

func (m *StringKeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringKeyValue) ProtoMessage

func (*StringKeyValue) ProtoMessage()

func (*StringKeyValue) Reset

func (m *StringKeyValue) Reset()

func (*StringKeyValue) Size

func (m *StringKeyValue) Size() (n int)

func (*StringKeyValue) String

func (m *StringKeyValue) String() string

func (*StringKeyValue) Unmarshal

func (m *StringKeyValue) Unmarshal(dAtA []byte) error

func (*StringKeyValue) XXX_DiscardUnknown added in v0.5.0

func (m *StringKeyValue) XXX_DiscardUnknown()

func (*StringKeyValue) XXX_Marshal added in v0.5.0

func (m *StringKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringKeyValue) XXX_Merge added in v0.5.0

func (m *StringKeyValue) XXX_Merge(src proto.Message)

func (*StringKeyValue) XXX_Size added in v0.5.0

func (m *StringKeyValue) XXX_Size() int

func (*StringKeyValue) XXX_Unmarshal added in v0.5.0

func (m *StringKeyValue) XXX_Unmarshal(b []byte) error

type TraceID added in v0.11.0

type TraceID struct {
	// contains filtered or unexported fields
}

TraceID is a custom data type that is used for all trace_id fields in OTLP Protobuf messages.

func NewTraceID added in v0.11.0

func NewTraceID(bytes [16]byte) TraceID

NewTraceID creates a TraceID from a byte slice.

func (TraceID) Bytes added in v0.11.0

func (tid TraceID) Bytes() [16]byte

Bytes returns the byte array representation of the TraceID.

func (TraceID) Equal added in v0.11.0

func (tid TraceID) Equal(that TraceID) bool

Equal returns true if ids are equal.

func (TraceID) HexString added in v0.11.0

func (tid TraceID) HexString() string

HexString returns hex representation of the ID.

func (TraceID) IsValid added in v0.14.0

func (tid TraceID) IsValid() bool

IsValid returns true if id contains at leas one non-zero byte.

func (TraceID) MarshalJSON added in v0.11.0

func (tid TraceID) MarshalJSON() ([]byte, error)

MarshalJSON converts trace id into a hex string enclosed in quotes.

func (*TraceID) MarshalTo added in v0.11.0

func (tid *TraceID) MarshalTo(data []byte) (n int, err error)

MarshalTo converts trace ID into a binary representation. Called by Protobuf serialization.

func (*TraceID) Size added in v0.11.0

func (tid *TraceID) Size() int

Size returns the size of the data to serialize.

func (*TraceID) Unmarshal added in v0.11.0

func (tid *TraceID) Unmarshal(data []byte) error

Unmarshal inflates this trace ID from binary representation. Called by Protobuf serialization.

func (*TraceID) UnmarshalJSON added in v0.11.0

func (tid *TraceID) UnmarshalJSON(data []byte) error

UnmarshalJSON inflates trace id from hex string, possibly enclosed in quotes. Called by Protobuf JSON deserialization.

Jump to

Keyboard shortcuts

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