Skip to content

Commit 7478d34

Browse files
committed
editoast: add trace id to response headers
Signed-off-by: Eloi Charpentier <[email protected]>
1 parent ae4a975 commit 7478d34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editoast/src/views/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ use axum::extract::Request;
5454
use axum::middleware::Next;
5555
use axum::response::Response;
5656
use axum_tracing_opentelemetry::middleware::OtelAxumLayer;
57+
use axum_tracing_opentelemetry::middleware::OtelInResponseLayer;
5758
use chrono::Duration;
5859
use dashmap::DashMap;
5960

@@ -1008,6 +1009,7 @@ impl Server {
10081009
app_state.clone(),
10091010
authentication_middleware,
10101011
))
1012+
.layer(OtelInResponseLayer)
10111013
.layer(OtelAxumLayer::default())
10121014
.layer(DefaultBodyLimit::disable())
10131015
.layer(request_payload_limit)

0 commit comments

Comments
 (0)