Documentation
¶
Overview ¶
Package telemetry sets up the open telemetry exporters to the ADK.
Index ¶
- func AddSpanProcessor(processor sdktrace.SpanProcessor)
- func RegisterTelemetry()
- func StartTrace(ctx context.Context, traceName string) []trace.Span
- func TraceLLMCall(spans []trace.Span, agentCtx agent.InvocationContext, ...)
- func TraceMergedToolCalls(spans []trace.Span, fnResponseEvent *session.Event)
- func TraceToolCall(spans []trace.Span, tool tool.Tool, fnArgs map[string]any, ...)
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 ¶
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 ¶
TraceMergedToolCalls traces the tool execution events.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.