forked from mtusi2026/mtusi2026lab6
11 lines
386 B
Go
11 lines
386 B
Go
// Package observation defines optional consumer-owned instrumentation boundaries.
|
|
package observation
|
|
|
|
import "context"
|
|
|
|
// Tracer starts bounded spans without exposing an SDK provider to business logic.
|
|
type Tracer interface {
|
|
// Start creates an operation span and a completion callback accepting its result.
|
|
Start(context.Context, string, string) (context.Context, func(error))
|
|
}
|