Skip to content

Commit

Permalink
fix: follow latest OTEL semantic conventions for the span name
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierManns committed Aug 27, 2024
1 parent 516e90c commit c6c6fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/root_span_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c6c6fa3

Please sign in to comment.