forked from mirror/reqwest-middleware
update tracing-opentelemetry to 0.16 (#18)
this update requires moving to tracing-subscriber 0.3. It removes chrono from transitive dependencies, following https://rustsec.org/advisories/RUSTSEC-2020-0159.htmlreqwest-tracing-0.2
parent
849f982f5e
commit
422566972a
|
@ -13,7 +13,7 @@ categories = ["web-programming::http-client"]
|
||||||
opentelemetry_0_13 = ["opentelemetry_0_13_pkg", "tracing-opentelemetry_0_12_pkg"]
|
opentelemetry_0_13 = ["opentelemetry_0_13_pkg", "tracing-opentelemetry_0_12_pkg"]
|
||||||
opentelemetry_0_14 = ["opentelemetry_0_14_pkg", "tracing-opentelemetry_0_13_pkg"]
|
opentelemetry_0_14 = ["opentelemetry_0_14_pkg", "tracing-opentelemetry_0_13_pkg"]
|
||||||
opentelemetry_0_15 = ["opentelemetry_0_15_pkg", "tracing-opentelemetry_0_14_pkg"]
|
opentelemetry_0_15 = ["opentelemetry_0_15_pkg", "tracing-opentelemetry_0_14_pkg"]
|
||||||
opentelemetry_0_16 = ["opentelemetry_0_16_pkg", "tracing-opentelemetry_0_15_pkg"]
|
opentelemetry_0_16 = ["opentelemetry_0_16_pkg", "tracing-opentelemetry_0_16_pkg"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
reqwest-middleware = { version = "0.1.2", path = "../reqwest-middleware" }
|
reqwest-middleware = { version = "0.1.2", path = "../reqwest-middleware" }
|
||||||
|
@ -31,7 +31,7 @@ opentelemetry_0_16_pkg = { package = "opentelemetry", version = "0.16", optional
|
||||||
tracing-opentelemetry_0_12_pkg = { package = "tracing-opentelemetry",version = "0.12", optional = true }
|
tracing-opentelemetry_0_12_pkg = { package = "tracing-opentelemetry",version = "0.12", optional = true }
|
||||||
tracing-opentelemetry_0_13_pkg = { package = "tracing-opentelemetry", version = "0.13", optional = true }
|
tracing-opentelemetry_0_13_pkg = { package = "tracing-opentelemetry", version = "0.13", optional = true }
|
||||||
tracing-opentelemetry_0_14_pkg = { package = "tracing-opentelemetry",version = "0.14", optional = true }
|
tracing-opentelemetry_0_14_pkg = { package = "tracing-opentelemetry",version = "0.14", optional = true }
|
||||||
tracing-opentelemetry_0_15_pkg = { package = "tracing-opentelemetry",version = "0.15", optional = true }
|
tracing-opentelemetry_0_16_pkg = { package = "tracing-opentelemetry",version = "0.16", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
wiremock = "0.5"
|
wiremock = "0.5"
|
||||||
|
|
|
@ -25,7 +25,7 @@ pub use tracing_opentelemetry_0_13_pkg as tracing_opentelemetry;
|
||||||
pub use tracing_opentelemetry_0_14_pkg as tracing_opentelemetry;
|
pub use tracing_opentelemetry_0_14_pkg as tracing_opentelemetry;
|
||||||
|
|
||||||
#[cfg(feature = "opentelemetry_0_16")]
|
#[cfg(feature = "opentelemetry_0_16")]
|
||||||
pub use tracing_opentelemetry_0_15_pkg as tracing_opentelemetry;
|
pub use tracing_opentelemetry_0_16_pkg as tracing_opentelemetry;
|
||||||
|
|
||||||
use opentelemetry::global;
|
use opentelemetry::global;
|
||||||
use opentelemetry::propagation::Injector;
|
use opentelemetry::propagation::Injector;
|
||||||
|
|
Loading…
Reference in New Issue