sentry::test
pub fn with_captured_events<F>(f: F) -> Vec<Event<'static>> where F: FnOnce(),
Runs some code with the default test hub and returns the captured events.
See with_captured_envelopes_options
with_captured_envelopes_options