otelprovider

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 14 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL