Documentation
¶
Overview ¶
Package otelprovider wraps an agent with OpenTelemetry tracing via NewMiddleware, recording spans and token usage for agent runs following the GenAI semantic conventions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware(cfg MiddlewareConfig) agent.Middleware
NewMiddleware creates a new middleware that adds OpenTelemetry tracing and metrics to agent runs.
Types ¶
type MiddlewareConfig ¶
type MiddlewareConfig struct {
SourceName string
}
MiddlewareConfig holds configuration for the middleware.
Click to show internal directories.
Click to hide internal directories.