mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-22 18:33:18 +01:00
Add the otel.name field to the root span with the HTTP {method} {path} format (#78)
This commit is contained in:
parent
d2e50af5a4
commit
8762fea124
@ -86,6 +86,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.kind = "server",
|
||||
otel.status_code = $crate::root_span_macro::private::tracing::field::Empty,
|
||||
trace_id = $crate::root_span_macro::private::tracing::field::Empty,
|
||||
|
Loading…
x
Reference in New Issue
Block a user