telemetry

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package telemetry sets up the open telemetry exporters to the ADK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSpanProcessor

func AddSpanProcessor(processor sdktrace.SpanProcessor)

AddSpanProcessor adds a span processor to the local tracer config.

func RegisterTelemetry

func RegisterTelemetry()

RegisterTelemetry sets up the local tracer that will be used to emit traces. We use local tracer to respect the global tracer configurations.

func StartTrace

func StartTrace(ctx context.Context, traceName string) []trace.Span

StartTrace returns two spans to start emitting events, one from global tracer and second from the local.

func TraceLLMCall

func TraceLLMCall(spans []trace.Span, agentCtx agent.InvocationContext, llmRequest *model.LLMRequest, event *session.Event)

TraceLLMCall fills the call_llm event details.

func TraceMergedToolCalls

func TraceMergedToolCalls(spans []trace.Span, fnResponseEvent *session.Event)

TraceMergedToolCalls traces the tool execution events.

func TraceToolCall

func TraceToolCall(spans []trace.Span, tool tool.Tool, fnArgs map[string]any, fnResponseEvent *session.Event)

TraceToolCall traces the tool execution events.

Types

This section is empty.

Jump to

Keyboard shortcuts

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