Files
mtusi2026lab6/internal/observation/tracer.go
T

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))
}