include traceresponse header if possible

This can help with debugging.
This commit is contained in:
Charles Hall 2024-09-22 11:01:33 -07:00
parent 9add9a1e96
commit 6ab87f97dd
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 54 additions and 4 deletions

View file

@ -171,7 +171,8 @@ async fn run_server() -> Result<(), error::Serve> {
.try_into()
.expect("failed to convert max request size"),
))
.layer(axum::middleware::from_fn(observability::http_metrics_layer));
.layer(axum::middleware::from_fn(observability::http_metrics_layer))
.layer(axum::middleware::from_fn(observability::traceresponse_layer));
let mut handles = Vec::new();
let mut servers = JoinSet::new();