callback_span

Function callback_span 

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

Create a span for callback execution

§Arguments

  • callback_type - Type of callback (e.g., “before_model”, “after_agent”)

§Example

use adk_telemetry::callback_span;
let span = callback_span("before_model");
let _enter = span.enter();
// Callback code here