1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-22 18:33:18 +01:00

fix: follow latest OTEL semantic conventions for the span name (#129)

see: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#name
This commit is contained in:
OlivierManns 2024-09-02 11:24:23 +02:00 committed by GitHub
parent e81e3c4b4c
commit 2b1ef85cac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ macro_rules! root_span {
http.user_agent = %user_agent,
http.target = %$request.uri().path_and_query().map(|p| p.as_str()).unwrap_or(""),
http.status_code = $crate::root_span_macro::private::tracing::field::Empty,
otel.name = %format!("HTTP {} {}", http_method, http_route),
otel.name = %format!("{} {}", http_method, http_route),
otel.kind = "server",
otel.status_code = $crate::root_span_macro::private::tracing::field::Empty,
trace_id = $crate::root_span_macro::private::tracing::field::Empty,