From 82e03978b89938219958032efb1448cc76baa181 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sat, 27 Sep 2025 02:14:26 +0530 Subject: Initial snapshot - OpenTelemetry demo 2.1.3 -f --- src/shipping/Cargo.toml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/shipping/Cargo.toml (limited to 'src/shipping/Cargo.toml') diff --git a/src/shipping/Cargo.toml b/src/shipping/Cargo.toml new file mode 100644 index 0000000..5fea85d --- /dev/null +++ b/src/shipping/Cargo.toml @@ -0,0 +1,31 @@ +[package] +name = "shipping" +edition = "2021" + +[[bin]] +name = "shipping" +path = "src/main.rs" + +[dependencies] +actix-web = "4" +anyhow = "1.0.99" +awc = { version = "3.8.0", default-features = false, features = ["compress-zstd"] } +serde = { version = "1.0.225", features = ["derive"] } +tonic = "0.14.2" +tracing = "0.1.41" +tracing-subscriber = { version = "0.3.20", features = ["env-filter"] } + +opentelemetry = "0.30.0" +opentelemetry_sdk = "0.30.0" +opentelemetry-otlp = { version = "0.30.0", features = ["grpc-tonic"] } +opentelemetry-instrumentation-actix-web = { version = "0.22.0", features = ["sync-middleware", "awc", "metrics"] } +opentelemetry-appender-tracing = "0.30.1" +opentelemetry-resource-detectors = "0.9.0" + +[dependencies.uuid] +version = "1.18.1" +features = [ + "v4", # Lets you generate random UUIDs + "fast-rng", # Use a faster (but still sufficiently random) RNG + "macro-diagnostics", # Enable better diagnostics for compile-time UUIDs +] -- cgit v1.2.3