instrumenter

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NullInstrumenter

func NullInstrumenter(ctx context.Context, op string, args ...any) func(err error)

NullInstrumenter is a no-op instrumenter.

Types

type Instrumenter

type Instrumenter func(ctx context.Context, op string, args ...any) func(err error)

Instrumenter defines function type that can be used for instrumentation. This function should return a function with no argument as a callback for finished execution.

func CombinedInstrumenter

func CombinedInstrumenter(instr ...Instrumenter) Instrumenter

CombinedInstrumenter is an instrumenter that combines multiple instrumenters.

func (Instrumenter) Observe

func (i Instrumenter) Observe(ctx context.Context, op string, args ...any) func(err error)

Observe operation.

Jump to

Keyboard shortcuts

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