workflowtracer

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 4 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 SpanFromContext

func SpanFromContext(ctx sync.Context) trace.Span

func WithWorkflowTracer

func WithWorkflowTracer(ctx sync.Context, tracer *WorkflowTracer) sync.Context

Types

type Span

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

func (*Span) End

func (s *Span) End()

type WorkflowTracer

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

func New

func New(tracer trace.Tracer) *WorkflowTracer

func Tracer

func Tracer(ctx sync.Context) *WorkflowTracer

func (*WorkflowTracer) Start

func (wt *WorkflowTracer) Start(ctx sync.Context, name string, opts ...trace.SpanStartOption) (sync.Context, Span)

Jump to

Keyboard shortcuts

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