From ad0c5ceda409f9d5df9e49e335c82f5657beb1bf Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 4 Dec 2024 17:13:39 -0500 Subject: [PATCH] add origin to tracing instrument logs on /send Signed-off-by: strawberry --- src/api/server/send.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/server/send.rs b/src/api/server/send.rs index 2da99c936..3d861ad78 100644 --- a/src/api/server/send.rs +++ b/src/api/server/send.rs @@ -36,7 +36,7 @@ type ResolvedMap = BTreeMap>; /// # `PUT /_matrix/federation/v1/send/{txnId}` /// /// Push EDUs and PDUs to this server. -#[tracing::instrument(skip_all, fields(%client), name = "send")] +#[tracing::instrument(skip_all, fields(%client, origin = body.origin().as_str()), name = "send")] pub(crate) async fn send_transaction_message_route( State(services): State, InsecureClientIp(client): InsecureClientIp, body: Ruma,