Skip to content

Commit 3d1b216

Browse files
committed
upgrade to axum 0.8
1 parent dc86d83 commit 3d1b216

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Cargo.toml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "datadog-tracing"
3-
version = "0.2.3"
3+
version = "0.3.0"
44
authors = [
55
"Fernando Goncalves <[email protected]>",
66
"Alefh Sousa <[email protected]>",
@@ -28,23 +28,23 @@ axum = [
2828
]
2929

3030
[dependencies]
31-
axum = { version = "^0.7.4", optional = true }
32-
http = { version = "1.0", optional = true }
31+
axum = { version = "^0.8", optional = true }
32+
http = { version = "1", optional = true }
3333
pin-project-lite = { version = "0.2", optional = true }
3434
futures-util = { version = "0.3", default-features = false, features = [
3535
], optional = true }
36-
axum-tracing-opentelemetry = { version = "0.16.0", optional = true }
37-
tracing-opentelemetry-instrumentation-sdk = { version = "0.16.0", optional = true }
36+
axum-tracing-opentelemetry = { version = "0.25", optional = true }
37+
tracing-opentelemetry-instrumentation-sdk = { version = "0.16.0", features = ["http"], optional = true }
3838
tower = { version = "0.4", optional = true }
3939
chrono = "^0.4.33"
4040
opentelemetry = { version = "^0.21.0" }
4141
opentelemetry_sdk = { version = "^0.21.2", features = ["rt-tokio"] }
4242
opentelemetry-http = { version = "^0.10.0" }
4343
opentelemetry-datadog = { version = "0.9.0", features = ["reqwest-client"] }
4444
reqwest = { version = "0.11", default-features = false }
45-
serde = { version = "^1.0.196", features = ["derive"] }
46-
serde_json = "^1.0.113"
47-
tokio = { version = "^1.36.0", features = [
45+
serde = { version = "1", features = ["derive"] }
46+
serde_json = "1"
47+
tokio = { version = "1", features = [
4848
"signal",
4949
"macros",
5050
], optional = true }

src/tracer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn build_tracer() -> TraceResult<Tracer> {
3737
.with_api_version(ApiVersion::Version05)
3838
.with_agent_endpoint(format!("http://{dd_host}:{dd_port}"))
3939
.with_trace_config(
40-
trace::config()
40+
trace::Config::default()
4141
.with_sampler(Sampler::AlwaysOn)
4242
.with_id_generator(RandomIdGenerator::default()),
4343
)

0 commit comments

Comments
 (0)