Creates a handler for Sentry events based on the given env.
If in dev, events won't be sent to Sentry. They will only be logged in the console.
The actual function that gets called when handling Sentry events.
The event from Sentry.
The EventHint generated by Sentry.
Creates a handler for Sentry events based on the given env.