span

package
v0.0.0-...-dd132ac Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSpan        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSpan          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSpan = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Span

type Span struct {
	TraceId              Span_TraceID      `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id"`
	SpanId               uint64            `protobuf:"varint,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	ParentId             uint64            `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Flags                byte              `protobuf:"varint,4,opt,name=flags,proto3,customtype=byte" json:"flags"`
	Baggage              map[string]string `` /* 155-byte string literal not displayed */
	Payload              *types.Any        `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Span) Descriptor

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

func (*Span) GetBaggage

func (m *Span) GetBaggage() map[string]string

func (*Span) GetParentId

func (m *Span) GetParentId() uint64

func (*Span) GetPayload

func (m *Span) GetPayload() *types.Any

func (*Span) GetSpanId

func (m *Span) GetSpanId() uint64

func (*Span) GetTraceId

func (m *Span) GetTraceId() Span_TraceID

func (*Span) Marshal

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

func (*Span) MarshalTo

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

func (*Span) MarshalToSizedBuffer

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

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) Reset

func (m *Span) Reset()

func (*Span) Size

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

func (*Span) String

func (m *Span) String() string

func (*Span) Unmarshal

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

func (*Span) Validate

func (m *Span) Validate() error

Validate checks the field values on Span with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Span) XXX_DiscardUnknown

func (m *Span) XXX_DiscardUnknown()

func (*Span) XXX_Marshal

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

func (*Span) XXX_Merge

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

func (*Span) XXX_MessageName

func (*Span) XXX_MessageName() string

func (*Span) XXX_Size

func (m *Span) XXX_Size() int

func (*Span) XXX_Unmarshal

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

type SpanValidationError

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

SpanValidationError is the validation error returned by Span.Validate if the designated constraints aren't met.

func (SpanValidationError) Cause

func (e SpanValidationError) Cause() error

Cause function returns cause value.

func (SpanValidationError) Error

func (e SpanValidationError) Error() string

Error satisfies the builtin error interface

func (SpanValidationError) ErrorName

func (e SpanValidationError) ErrorName() string

ErrorName returns error name.

func (SpanValidationError) Field

func (e SpanValidationError) Field() string

Field function returns field value.

func (SpanValidationError) Key

func (e SpanValidationError) Key() bool

Key function returns key value.

func (SpanValidationError) Reason

func (e SpanValidationError) Reason() string

Reason function returns reason value.

type Span_TraceID

type Span_TraceID struct {
	Low                  uint64   `protobuf:"varint,1,opt,name=Low,proto3" json:"Low,omitempty"`
	High                 uint64   `protobuf:"varint,2,opt,name=High,proto3" json:"High,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Span_TraceID) Descriptor

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

func (*Span_TraceID) Marshal

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

func (*Span_TraceID) MarshalTo

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

func (*Span_TraceID) MarshalToSizedBuffer

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

func (*Span_TraceID) ProtoMessage

func (*Span_TraceID) ProtoMessage()

func (*Span_TraceID) Reset

func (m *Span_TraceID) Reset()

func (*Span_TraceID) Size

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

func (*Span_TraceID) String

func (m *Span_TraceID) String() string

func (*Span_TraceID) Unmarshal

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

func (*Span_TraceID) Validate

func (m *Span_TraceID) Validate() error

Validate checks the field values on Span_TraceID with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Span_TraceID) XXX_DiscardUnknown

func (m *Span_TraceID) XXX_DiscardUnknown()

func (*Span_TraceID) XXX_Marshal

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

func (*Span_TraceID) XXX_Merge

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

func (*Span_TraceID) XXX_MessageName

func (*Span_TraceID) XXX_MessageName() string

func (*Span_TraceID) XXX_Size

func (m *Span_TraceID) XXX_Size() int

func (*Span_TraceID) XXX_Unmarshal

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

type Span_TraceIDValidationError

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

Span_TraceIDValidationError is the validation error returned by Span_TraceID.Validate if the designated constraints aren't met.

func (Span_TraceIDValidationError) Cause

Cause function returns cause value.

func (Span_TraceIDValidationError) Error

Error satisfies the builtin error interface

func (Span_TraceIDValidationError) ErrorName

func (e Span_TraceIDValidationError) ErrorName() string

ErrorName returns error name.

func (Span_TraceIDValidationError) Field

Field function returns field value.

func (Span_TraceIDValidationError) Key

Key function returns key value.

func (Span_TraceIDValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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