From 470c9b52dd9ab904400fe541bf8856597ed2b05a Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sat, 21 Feb 2026 03:29:12 +0000 Subject: [PATCH] feat: Instrument `process_inbound_transaction` --- src/api/server/send.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/api/server/send.rs b/src/api/server/send.rs index 4420223d..337411c2 100644 --- a/src/api/server/send.rs +++ b/src/api/server/send.rs @@ -40,6 +40,7 @@ use ruma::{ }; use service::transaction_ids::{TxnKey, WrappedTransactionResponse}; use tokio::sync::watch::{Receiver, Sender}; +use tracing::instrument; use crate::Ruma; @@ -118,6 +119,14 @@ async fn wait_for_result( Ok(value.clone().expect("channel returned with no value?")) } +#[instrument( + level = "info", + skip_all, + fields( + id = ?body.transaction_id.as_str(), + origin = ?body.origin() + ) +)] async fn process_inbound_transaction( services: crate::State, body: Ruma,