Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(router): added outgoing webhook request log #3590

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/router/src/core/webhooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use common_utils::{errors::ReportSwitchExt, events::ApiEventsType, request::Requ
use error_stack::{report, IntoReport, ResultExt};
use masking::ExposeInterface;
use router_env::{instrument, tracing, tracing_actix_web::RequestId};
use tracing_futures::Instrument;

use super::{errors::StorageErrorExt, metrics};
#[cfg(feature = "stripe")]
Expand Down Expand Up @@ -783,7 +784,8 @@ pub async fn create_event_and_trigger_outgoing_webhook<W: types::OutgoingWebhook
logger::error!(error=?err, event=?webhook_event, "Error Logging Outgoing Webhook Event");
}
}
});
}.in_current_span(),
);
}

Ok(())
Expand Down
Loading