telemetry

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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 Run

type Run struct {
	// contains filtered or unexported fields
}

func (*Run) End

func (r *Run) End(err error)

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

A nil Tracer does nothing; Setup returns nil when telemetry is disabled.

func Setup

Setup returns (nil, nil, noop, nil) when telemetry is disabled. The returned shutdown flushes pending spans.

func (*Tracer) SetSession

func (t *Tracer) SetSession(id string)

func (*Tracer) StartRun

func (t *Tracer) StartRun(ctx context.Context, name string) (context.Context, *Run)

func (*Tracer) ToolMiddleware

func (t *Tracer) ToolMiddleware() agentcore.ToolMiddleware

Jump to

Keyboard shortcuts

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