You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Concerning this method here. Currently, the sendToSentry function is called whenever an exception is raised inside the environment.use block. However, if the exception is raised when creating the environment then the program flow never gets as far as this block.
The correct implementation should look more like this:
environment.use { env =>
// do something with environment
}.recoverWith {
case e: Throwable =>
// send to sentry here
}
But it can't be exactly like that, because currently the sentry client is part of the environment.
The text was updated successfully, but these errors were encountered:
istreeter
changed the title
Sentry should report exceptions in initialising environment
common: Sentry should report exceptions in initialising environment
Mar 22, 2022
Concerning this method here. Currently, the
sendToSentry
function is called whenever an exception is raised inside theenvironment.use
block. However, if the exception is raised when creating the environment then the program flow never gets as far as this block.The correct implementation should look more like this:
But it can't be exactly like that, because currently the sentry client is part of the environment.
The text was updated successfully, but these errors were encountered: