instrument

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package instrument defines optional instrumentation hooks without a telemetry vendor dependency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, h Hook, operation string) (context.Context, func(error))

Start starts registered work with the supplied context.

Types

type Hook

type Hook func(context.Context, string) (context.Context, func(error))

Hook starts one bounded-cardinality operation. Done must be concurrency safe and called exactly once. Implementations must not panic. Operations contain SDK-defined names, never SQL or payloads.

Jump to

Keyboard shortcuts

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