Skip to content

Commit b81348f

Browse files
authored
ref(client): Make prepare_event public (#662)
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
1 parent 7ae972e commit b81348f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry-core/src/client.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ impl Client {
172172
integration.as_ref().as_any().downcast_ref()
173173
}
174174

175-
fn prepare_event(
175+
/// Prepares an event for transmission to sentry.
176+
pub fn prepare_event(
176177
&self,
177178
mut event: Event<'static>,
178179
scope: Option<&Scope>,

0 commit comments

Comments
 (0)