Improve tracing of request error responses.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-07-31 14:31:28 +00:00
1 parent 6742e1d206
commit e6f1b98d6a
4 files changed
+19 -9

No files matched your search

+3 -1
View File
@@ -1,3 +1,5 @@
use std::fmt::Debug;
use axum::{
Router,
extract::FromRequestParts,
@@ -38,7 +40,7 @@ macro_rules! ruma_handler {
where
Fun: Fn($($tx,)* Ruma<Req>,) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<Req::OutgoingResponse, Err>> + Send,
Req: IncomingRequest + Send + Sync + 'static,
Req: IncomingRequest + Debug + Send + Sync + 'static,
Err: IntoResponse + Send,
<Req as IncomingRequest>::OutgoingResponse: Send,
$( $tx: FromRequestParts<State> + Send + Sync + 'static, )*