instrument

package
v0.0.0-...-ae8e89f Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterFn

type FilterFn func(err error) bool

type Fn

type Fn func() error

type Instrument

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

func New

func New(runtime cadence.Runtime, name string, msg string) *Instrument

func (*Instrument) Instrument

func (i *Instrument) Instrument(ctx workflow.Context, operation Fn, opts ...Option) error

type Option

type Option func(options *instrumentOptions)

func WithFilter

func WithFilter(filter func(err error) bool) Option

func WithLoggerField

func WithLoggerField(field zap.Field) Option

func WithScopeTag

func WithScopeTag(name string, value string) Option

Jump to

Keyboard shortcuts

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