agent_run_span

Function agent_run_span 

Source
pub fn agent_run_span(agent_name: &str, invocation_id: &str) -> Span
Available on crate feature telemetry only.
Expand description

Create a span for agent execution

§Arguments

  • agent_name - Name of the agent being executed
  • invocation_id - Unique ID for this invocation

§Example

use adk_telemetry::agent_run_span;
let span = agent_run_span("my-agent", "inv-123");
let _enter = span.enter();
// Agent execution code here