diff --git a/rust/examples/copycat.rs b/rust/examples/copycat.rs index 67303e48..28bbd17e 100644 --- a/rust/examples/copycat.rs +++ b/rust/examples/copycat.rs @@ -30,6 +30,9 @@ use libits::transport::packet::Packet; use log::{debug, info, warn}; use timer::MessageTimer; +#[cfg(feature = "telemetry")] +use libits::transport::telemetry::init_tracer; + pub struct CopyCat { configuration: Arc, item_receiver: Receiver>, @@ -233,6 +236,9 @@ async fn main() { .set_credentials(username, password.unwrap_or(&String::new())); } + #[cfg(feature = "telemetry")] + init_tracer(&configuration.telemetry, "copycat").expect("Failed to init telemetry"); + pipeline::run::( Arc::new(configuration), Arc::new(RwLock::new(context)),