Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit c9718bb

Browse files
committed
sentry only trace on non-404
1 parent 0fc5dc4 commit c9718bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ async fn main() {
176176
})),
177177
)
178178
})
179-
.route_layer(axum::middleware::from_fn(handle_etag))
180179
.layer(CatchPanicLayer::custom(handle_panic))
181180
.layer(CorsLayer::very_permissive())
182181
.layer(TraceLayer::new_for_http().on_request(handle_request))
183-
.layer(SentryHttpLayer::with_transaction())
182+
.route_layer(axum::middleware::from_fn(handle_etag))
183+
.route_layer(SentryHttpLayer::with_transaction())
184184
.with_state(state.clone());
185185

186186
let listener = tokio::net::TcpListener::bind(format!("{}:{}", &state.env.bind, state.env.port))

0 commit comments

Comments
 (0)