Documentation
¶
Overview ¶
Package telemetry exports traces over OTLP/HTTP (e.g. to Langfuse): generation spans through a litellm observer, run and tool spans through Tracer. Every span carries the current session id. When disabled, all of it is a no-op.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
A nil Tracer does nothing; Setup returns nil when telemetry is disabled.
func Setup ¶
func Setup(ctx context.Context, cfg config.TelemetryConfig) (litellm.Observer, *Tracer, func(context.Context) error, error)
Setup returns (nil, nil, noop, nil) when telemetry is disabled. The returned shutdown flushes pending spans.
func (*Tracer) SetSession ¶
func (*Tracer) ToolMiddleware ¶
func (t *Tracer) ToolMiddleware() agentcore.ToolMiddleware
Click to show internal directories.
Click to hide internal directories.