tracing

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSpan added in v0.19.0

func ContextWithSpan(ctx sync.Context, span trace.Span) sync.Context

func GetNewSpanID added in v0.19.0

func GetNewSpanID(tracer trace.Tracer) trace.SpanID

func SetSpanID added in v0.19.0

func SetSpanID(span trace.Span, sid trace.SpanID)

func SpanContextFromContext added in v0.19.0

func SpanContextFromContext(ctx context.Context, tctx Context) context.Context

func SpanFromContext added in v0.19.0

func SpanFromContext(ctx sync.Context) trace.Span

func SpanWithStartTime added in v0.19.0

func SpanWithStartTime(
	ctx context.Context, tracer trace.Tracer, name string, spanID trace.SpanID, startTime time.Time, opts ...trace.SpanStartOption) trace.Span

func WithSpanError added in v0.19.0

func WithSpanError(span trace.Span, err error) error

func WorkflowSpanName added in v0.19.0

func WorkflowSpanName(workflowName string) string

Types

type Context added in v0.19.0

type Context map[string]string

func ContextFromWfCtx added in v0.19.0

func ContextFromWfCtx(ctx sync.Context) Context

func (Context) Get added in v0.19.0

func (wim Context) Get(key string) string

func (Context) Keys added in v0.19.0

func (wim Context) Keys() []string

func (Context) Set added in v0.19.0

func (wim Context) Set(key string, value string)

Jump to

Keyboard shortcuts

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