diff --git a/Cargo.lock b/Cargo.lock index 534ce51..22d7514 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -577,12 +577,6 @@ version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" -[[package]] -name = "glob" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" - [[package]] name = "h2" version = "0.4.5" @@ -1114,9 +1108,9 @@ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "opentelemetry" -version = "0.28.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "236e667b670a5cdf90c258f5a55794ec5ac5027e960c224bff8367a59e1e6426" +checksum = "aaf416e4cb72756655126f7dd7bb0af49c674f4c1b9903e80c009e0c37e552e6" dependencies = [ "futures-core", "futures-sink", @@ -1128,9 +1122,9 @@ dependencies = [ [[package]] name = "opentelemetry-proto" -version = "0.28.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56f8870d3024727e99212eb3bb1762ec16e255e3e6f58eeb3dc8db1aa226746d" +checksum = "2e046fd7660710fe5a05e8748e70d9058dc15c94ba914e7c4faa7c728f0e8ddc" dependencies = [ "opentelemetry", "opentelemetry_sdk", @@ -1140,18 +1134,16 @@ dependencies = [ [[package]] name = "opentelemetry_sdk" -version = "0.28.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84dfad6042089c7fc1f6118b7040dc2eb4ab520abbf410b79dc481032af39570" +checksum = "11f644aa9e5e31d11896e024305d7e3c98a88884d9f8919dbf37a9991bc47a4b" dependencies = [ - "async-trait", "futures-channel", "futures-executor", "futures-util", - "glob", "opentelemetry", "percent-encoding", - "rand 0.8.5", + "rand 0.9.1", "serde_json", "thiserror 2.0.3", ] @@ -2054,9 +2046,9 @@ dependencies = [ [[package]] name = "tonic" -version = "0.12.3" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877c5b330756d856ffcc4553ab34a5684481ade925ecc54bcd1bf02b1d0d4d52" +checksum = "7e581ba15a835f4d9ea06c55ab1bd4dce26fc53752c69a04aac00703bfb49ba9" dependencies = [ "async-trait", "base64", diff --git a/Cargo.toml b/Cargo.toml index 0daee13..05690eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ time = { version = "0.3.41", features = ["formatting"] } axum = { version = "0.8.1", default-features = false, features = ["multipart","macros", "tokio", "http1", "json"] } tokio = { version = "1.45.1", features = ["macros", "rt-multi-thread", "signal", "time"] } tokio-util = "0.7.15" -opentelemetry-proto = { version = "0.28.0", default-features = false, features = ["gen-tonic-messages", "logs", "trace", "metrics"]} +opentelemetry-proto = { version = "0.30.0", default-features = false, features = ["gen-tonic-messages", "logs", "trace", "metrics"]} tracing-core = {version = "0.1.32"} prost = {version = "0.13.5"} axum-extra = { version = "0.10.1", default-features = false } diff --git a/src/otlp/log.rs b/src/otlp/log.rs index ccf03cb..8d60e9e 100644 --- a/src/otlp/log.rs +++ b/src/otlp/log.rs @@ -48,7 +48,7 @@ fn build_logs_export_body( let resource_logs = ResourceLogs { resource: Some(Resource { attributes: attrs, - dropped_attributes_count: 0, + ..Resource::default() }), scope_logs: vec![scope_logs], schema_url: "".to_string(), diff --git a/src/otlp/metrics.rs b/src/otlp/metrics.rs index e7ff281..f2a66fe 100644 --- a/src/otlp/metrics.rs +++ b/src/otlp/metrics.rs @@ -147,7 +147,7 @@ fn build_metrics_export_body( let resource_metrics = ResourceMetrics { resource: Some(Resource { attributes: attrs, - dropped_attributes_count: 0, + ..Resource::default() }), scope_metrics: vec![scope_metrics], schema_url: "".to_string(), diff --git a/src/otlp/trace.rs b/src/otlp/trace.rs index 25cc9b0..27683f0 100644 --- a/src/otlp/trace.rs +++ b/src/otlp/trace.rs @@ -82,7 +82,7 @@ fn build_trace_export_body( let resource_spans = ResourceSpans { resource: Some(Resource { attributes: attrs, - dropped_attributes_count: 0, + ..Resource::default() }), scope_spans: vec![scope_spans], schema_url: "".to_string(),