Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion update-agent/core/src/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ pub const NO_TAGS: &[&str] = &[];

fn init_datadog_client() -> Client {
let datadog_options = Options::default();
Client::new(datadog_options).unwrap()

match Client::new(datadog_options) {
Ok(client) => client,
Err(err) => {
tracing::error!(
"failed to initialize datadog telemetry client: {err:?}"
);
Client::disabled()
}
}
}

/// A trait for logging errors instead of propagating the error with `?`.
Expand Down