tracing

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSpan

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

func GetNewSpanID

func GetNewSpanID(tracer trace.Tracer) trace.SpanID

func SetSpanID

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

func SpanContextFromContext

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

func SpanFromContext

func SpanFromContext(ctx sync.Context) trace.Span

func SpanWithStartTime

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

func WithSpanError

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

func WorkflowSpanName

func WorkflowSpanName(workflowName string) string

Types

type Context

type Context map[string]string

func ContextFromWfCtx

func ContextFromWfCtx(ctx sync.Context) Context

func (Context) Get

func (wim Context) Get(key string) string

func (Context) Keys

func (wim Context) Keys() []string

func (Context) Set

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