Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat(router_env): add support for UUID v7 for tracing actix web (#2661)

Nishant Joshi65319fe958aa
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 66da12a13b..3082e9635c 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -17,6 +17,15 @@ rustflags = [
# "-Wmissing_docs",
"-Wrust_2018_idioms",
"-Wunused_qualifications",
+ "--cfg",
+ "uuid_unstable"
+]
+
+
+[build]
+rustdocflags = [
+ "--cfg",
+ "uuid_unstable"
]
[alias]
diff --git a/Cargo.lock b/Cargo.lock
index 66bace95e7..665703f3d5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -583,6 +583,12 @@ dependencies = [
"syn 2.0.38",
]
+[[package]]
+name = "atomic"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c59bdb34bc650a32731b31bd8f0829cc15d24a708ee31559e0bb34f2bc320cba"
+
[[package]]
name = "autocfg"
version = "1.1.0"
@@ -5566,9 +5572,9 @@ dependencies = [
[[package]]
name = "tracing-actix-web"
-version = "0.7.7"
+version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "94982c2ad939d5d0bfd71c2f9b7ed273c72348485c72bb87bb4db6bd69df10cb"
+checksum = "a512ec11fae6c666707625e84f83e5d58f941e9ab15723289c0d380edfe48f09"
dependencies = [
"actix-web",
"opentelemetry",
@@ -5880,6 +5886,7 @@ version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d"
dependencies = [
+ "atomic",
"getrandom 0.2.10",
"serde",
]
diff --git a/crates/router_env/Cargo.toml b/crates/router_env/Cargo.toml
index 1181685d72..266baf0e38 100644
--- a/crates/router_env/Cargo.toml
+++ b/crates/router_env/Cargo.toml
@@ -23,7 +23,7 @@ strum = { version = "0.24.1", features = ["derive"] }
time = { version = "0.3.21", default-features = false, features = ["formatting"] }
tokio = { version = "1.28.2" }
tracing = { version = "=0.1.36" }
-tracing-actix-web = { version = "0.7.5", features = ["opentelemetry_0_19"], optional = true }
+tracing-actix-web = { version = "0.7.8", features = ["opentelemetry_0_19", "uuid_v7"], optional = true }
tracing-appender = { version = "0.2.2" }
tracing-attributes = "=0.1.22"
tracing-opentelemetry = { version = "0.19.0" }