tool_execute_span

Function tool_execute_span 

Source
pub fn tool_execute_span(tool_name: &str) -> Span
Available on crate feature telemetry only.
Expand description

Create a span for tool execution

§Arguments

  • tool_name - Name of the tool being executed

§Example

use adk_telemetry::tool_execute_span;
let span = tool_execute_span("weather_tool");
let _enter = span.enter();
// Tool execution code here