Skip to content

Commit

Permalink
run the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Aug 18, 2024
1 parent 902ca4a commit 8d58cea
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions crates/cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,17 @@ fn get_otel_setup() -> Result<Option<Tracer>> {

match (grafana_key, honeycomb_key, baselime_key, hyperdx_key) {
(None, None, None, None) => {
#[cfg(feature = "server")]
eprintln!("No OTLP key found, tracing will be disabled");
return Ok(None);
if let Some(endpoint) = get_otel_key("OTEL_EXPORTER_OTLP_ENDPOINT") {
eprintln!(
"No explicit OTLP key found, using default OTLP endpoint: {}",
endpoint
);
} else {
eprintln!("No OTLP key found, tracing will be disabled");
return Ok(None);
}
}

(Some(grafana_key), _, _, _) => {
let instance_id = "665534";
let encoded =
Expand Down

0 comments on commit 8d58cea

Please sign in to comment.