Skip to content

Commit b6b9971

Browse files
committed
fix: Change user-agent in OTLP Exporter to match spec
1 parent 0462369 commit b6b9971

File tree

1 file changed

+1
-1
lines changed
  • opentelemetry-otlp/src/exporter

1 file changed

+1
-1
lines changed

opentelemetry-otlp/src/exporter/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ fn default_headers() -> std::collections::HashMap<String, String> {
185185
let mut headers = std::collections::HashMap::new();
186186
headers.insert(
187187
"User-Agent".to_string(),
188-
format!("OTel OTLP Exporter Rust/{}", env!("CARGO_PKG_VERSION")),
188+
format!("OTel-OTLP-Exporter-Rust/{}", env!("CARGO_PKG_VERSION")),
189189
);
190190
headers
191191
}

0 commit comments

Comments
 (0)