internal

package
v0.0.0-...-45fead3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSpan

func ContextWithSpan(ctx context.Context, span Span) context.Context

Types

type FinishSpan

type FinishSpan func(context.Context, Span)

type FinishSpanOption

type FinishSpanOption func(*finishSpanConfig)

func WithFinishTime

func WithFinishTime(finishTime time.Time) FinishSpanOption

type Span

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

func NewSpan

func NewSpan(opts ...StartSpanOption) Span

func SpanFromContext

func SpanFromContext(ctx context.Context) (Span, bool)

func (Span) Attribute

func (s Span) Attribute(key string) (string, bool)

func (Span) Attributes

func (s Span) Attributes() []internal.Attribute

func (Span) Finish

func (s Span) Finish(ctx context.Context, opts ...FinishSpanOption)

func (Span) FinishTime

func (s Span) FinishTime() time.Time

func (Span) ID

func (s Span) ID() [8]byte

func (Span) OperationName

func (s Span) OperationName() string

func (Span) ParentID

func (s Span) ParentID() [8]byte

func (Span) SetAttribute

func (s Span) SetAttribute(key string, value string)

func (Span) StartTime

func (s Span) StartTime() time.Time

func (Span) TraceID

func (s Span) TraceID() [16]byte

type StartSpanOption

type StartSpanOption func(*startSpanConfig)

func WithFinishSpan

func WithFinishSpan(finishSpan FinishSpan) StartSpanOption

func WithID

func WithID(id [8]byte) StartSpanOption

func WithOperationName

func WithOperationName(operationName string) StartSpanOption

func WithParentID

func WithParentID(parentID [8]byte) StartSpanOption

func WithStartTime

func WithStartTime(startTime time.Time) StartSpanOption

func WithTraceID

func WithTraceID(traceID [16]byte) StartSpanOption

Jump to

Keyboard shortcuts

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