Skip to content

Commit

Permalink
editoast: remove 'OtelInResponseLayer'
Browse files Browse the repository at this point in the history
This layer is not really useful since it provides trace id to the
web client of `editoast` as response headers. `gateway` is not really
able to consume these anyway.
  • Loading branch information
woshilapin committed Sep 3, 2024
1 parent b0f1c94 commit 82887d1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion editoast/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ async fn runserver(
app_state.clone(),
authorizer_middleware,
))
.layer(OtelInResponseLayer)
.layer(OtelAxumLayer::default())
.layer(request_payload_limit)
.layer(cors)
Expand Down
1 change: 0 additions & 1 deletion editoast/src/views/test_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ impl TestAppBuilder {
app_state.clone(),
authorizer_middleware,
))
.layer(OtelInResponseLayer)
.layer(OtelAxumLayer::default())
.layer(TraceLayer::new_for_http())
.with_state(app_state);
Expand Down

0 comments on commit 82887d1

Please sign in to comment.