From e349d27570b3a044787246a87e04828446f03700 Mon Sep 17 00:00:00 2001 From: Elias Ram Date: Wed, 5 Jun 2024 15:15:57 +0200 Subject: [PATCH] ref(client): Make prepare_event public Make prepare_event public so that sentry-cli can use it directly instead of via capture_event. This allows sentry-cli to do the actual transmission, enabling debug logging and non-zero exit codes on transmission failure --- sentry-core/src/client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sentry-core/src/client.rs b/sentry-core/src/client.rs index 46d49e67..89fa0677 100644 --- a/sentry-core/src/client.rs +++ b/sentry-core/src/client.rs @@ -172,7 +172,8 @@ impl Client { integration.as_ref().as_any().downcast_ref() } - fn prepare_event( + /// Prepares an event for transmission to sentry. + pub fn prepare_event( &self, mut event: Event<'static>, scope: Option<&Scope>,