fix(reqwest-tracing): fix missing deps (#124)

Missed in https://github.com/TrueLayer/reqwest-middleware/pull/118
pull/125/head
Ethan Brierley 2024-03-12 15:03:25 +00:00 committed by GitHub
parent d44458f402
commit d20903e2f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -63,5 +63,7 @@ tracing_subscriber_0_3 = { package = "tracing-subscriber", version = "0.3.0" }
wiremock = "0.5.0" wiremock = "0.5.0"
opentelemetry_sdk_0_21 = { package = "opentelemetry_sdk", version = "0.21.0", features = ["trace"] } opentelemetry_sdk_0_21 = { package = "opentelemetry_sdk", version = "0.21.0", features = ["trace"] }
opentelemetry_sdk_0_22 = { package = "opentelemetry_sdk", version = "0.22.0", features = ["trace"] }
opentelemetry_stdout_0_1 = { package = "opentelemetry-stdout", version = "0.1.0", features = ["trace"] } opentelemetry_stdout_0_1 = { package = "opentelemetry-stdout", version = "0.1.0", features = ["trace"] }
opentelemetry_stdout_0_2 = { package = "opentelemetry-stdout", version = "0.2.0", features = ["trace"] } opentelemetry_stdout_0_2 = { package = "opentelemetry-stdout", version = "0.2.0", features = ["trace"] }
opentelemetry_stdout_0_3 = { package = "opentelemetry-stdout", version = "0.3.0", features = ["trace"] }

View File

@ -152,8 +152,10 @@ mod test {
use opentelemetry::trace::TracerProvider; use opentelemetry::trace::TracerProvider;
#[cfg(feature = "opentelemetry_0_20")] #[cfg(feature = "opentelemetry_0_20")]
use opentelemetry_stdout_0_1::SpanExporterBuilder; use opentelemetry_stdout_0_1::SpanExporterBuilder;
#[cfg(any(feature = "opentelemetry_0_21", feature = "opentelemetry_0_22"))] #[cfg(feature = "opentelemetry_0_21")]
use opentelemetry_stdout_0_2::SpanExporterBuilder; use opentelemetry_stdout_0_2::SpanExporterBuilder;
#[cfg(feature = "opentelemetry_0_22")]
use opentelemetry_stdout_0_3::SpanExporterBuilder;
let exporter = SpanExporterBuilder::default() let exporter = SpanExporterBuilder::default()
.with_writer(std::io::sink()) .with_writer(std::io::sink())