Skip to content

Commit

Permalink
fix import in test too
Browse files Browse the repository at this point in the history
  • Loading branch information
mellowagain committed Nov 21, 2023
1 parent 7a6afbf commit 7b88823
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autometrics/tests/settings_custom_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ fn custom_prometheus_registry() {
#[cfg(opentelemetry)]
#[test]
fn custom_opentelemetry_registry() {
#[cfg(feature = "opentelemetry-0_20")]
use opentelemetry_0_20::{global, KeyValue};
#[cfg(feature = "opentelemetry-0_21")]
use opentelemetry_0_21::{global, KeyValue};
use prometheus::{Registry, TextEncoder};

// OpenTelemetry uses the `prometheus` crate under the hood
Expand Down

0 comments on commit 7b88823

Please sign in to comment.