add origin to tracing instrument logs on /send
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
68afdb22c7
commit
ad0c5ceda4
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ type ResolvedMap = BTreeMap<OwnedEventId, Result<()>>;
|
|||
/// # `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<crate::State>, InsecureClientIp(client): InsecureClientIp,
|
||||
body: Ruma<send_transaction_message::v1::Request>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue