Documentation
¶
Overview ¶
Package eval instruments generic Scope evaluation calls with OpenTelemetry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidConfig = errors.New("otel/eval: invalid config") ErrInvalidEvaluator = errors.New("otel/eval: invalid evaluator") )
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware[T any] struct { // contains filtered or unexported fields }
Middleware is typed by the evaluated subject so Wrap remains the single composition API despite Go methods not supporting their own type parameters.
func NewMiddleware ¶
func NewMiddleware[T any](config MiddlewareConfig) (Middleware[T], error)
NewMiddleware resolves nil OTel providers to the official process globals.
type MiddlewareConfig ¶
type MiddlewareConfig struct {
TracerProvider trace.TracerProvider
MeterProvider metric.MeterProvider
}
MiddlewareConfig supplies optional OTel providers for evaluation instrumentation.
Click to show internal directories.
Click to hide internal directories.