mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 23:31:24 +01:00
Useful span names for incoming HTTP requests
Usually it's not possible to make span names dynamic, but the magic otel.name attribute changes the span name in the OpenTelemetry tracing backend.
This commit is contained in:
parent
0b9e43cbdd
commit
dd6cda4519
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ async fn run_server() -> io::Result<()> {
|
|||
request.uri().path()
|
||||
};
|
||||
|
||||
tracing::info_span!("http_request", %path, method = %request.method())
|
||||
tracing::info_span!("http_request", otel.name = path, %path, method = %request.method())
|
||||
},
|
||||
))
|
||||
.layer(axum::middleware::from_fn(unrecognized_method))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue