trace

package
v0.0.0-...-f4a484a Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: EUPL-1.2 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithProcessingOperation

func ContextWithProcessingOperation(ctx context.Context, op *ProcessingContext) context.Context

func Extract

func Extract(ctx context.Context, h http.Header) context.Context

func Inject

func Inject(ctx context.Context, h http.Header)

Types

type ProcessingContext

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

func New

func New(traceID TraceID, spanID SpanID) *ProcessingContext

func ProcessingOperationFromContext

func ProcessingOperationFromContext(ctx context.Context) *ProcessingContext

func (ProcessingContext) Foreign

func (p ProcessingContext) Foreign() bool

func (ProcessingContext) IsValid

func (p ProcessingContext) IsValid() bool

func (ProcessingContext) OperationID

func (p ProcessingContext) OperationID() SpanID

func (ProcessingContext) TraceID

func (p ProcessingContext) TraceID() TraceID

type SpanID

type SpanID [8]byte

func (SpanID) Empty

func (id SpanID) Empty() bool

func (SpanID) String

func (id SpanID) String() string

type TraceID

type TraceID [16]byte

func (TraceID) Empty

func (id TraceID) Empty() bool

func (TraceID) String

func (id TraceID) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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