Skip to content

Commit

Permalink
test(bootstrap-telemetry): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkloock committed Jan 15, 2025
1 parent 2050a51 commit f13e2c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/bootstrap/telemetry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,14 @@ mod tests {
let exporter = scuffle_metrics::prometheus::exporter().build();
prometheus.register_collector(exporter.collector());
let provider = SdkMeterProvider::builder().with_reader(exporter).build();
opentelemetry::global::set_meter_provider(provider);
opentelemetry::global::set_meter_provider(provider.clone());

let open_telemetry = crate::opentelemetry::OpenTelemetry::new().with_metrics(provider);

Ok(Arc::new(TestGlobal {
bind_addr,
prometheus,
open_telemetry: crate::opentelemetry::OpenTelemetry::new(),
open_telemetry,
}))
}
}
Expand Down

0 comments on commit f13e2c3

Please sign in to comment.