Skip to content

Commit

Permalink
ref(client): Make prepare_event public
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Elias Ram committed Jun 5, 2024
1 parent 7ae972e commit e349d27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sentry-core/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit e349d27

Please sign in to comment.