Skip to main content

init_telemetry

Function init_telemetry 

Source
pub fn init_telemetry(service_name: &str) -> Result<(), TelemetryError>
Available on crate feature telemetry only.
Expand description

Initialize basic telemetry with console logging.

§Arguments

  • service_name - Name of the service for trace identification

§Example

use adk_telemetry::init_telemetry;
init_telemetry("my-agent-service").expect("Failed to initialize telemetry");