workflowtracer

package
v0.0.0-...-25251a0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 6 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()

func (*Span) Marshal

func (s *Span) Marshal(metadata *core.WorkflowMetadata)

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)

func (*WorkflowTracer) UpdateExecution

func (wt *WorkflowTracer) UpdateExecution(span trace.Span)

Jump to

Keyboard shortcuts

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