model_call_span

Function model_call_span 

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

Create a span for model API calls

§Arguments

  • model_name - Name of the LLM model being called

§Example

use adk_telemetry::model_call_span;
let span = model_call_span("gemini-2.0-flash");
let _enter = span.enter();
// Model call code here