-
-
Notifications
You must be signed in to change notification settings - Fork 206
Closed
Description
Environment
~> 8.0
Steps to Reproduce
- Fail to include
:hackney
in your application deps; use the default hackney adapter - Include something like
{:excoveralls, "~> 0.15", only: [:dev, :test]}
inmix.exs
- Add
Logger.add_backend(Sentry.LoggerBackend) to
application.ex` - Compile and run
Expected Result
Sentry should fail to compile due to the missing dependency.
Actual Result
Sentry compiles and runs in dev and test environments (because excoveralls
happens to require hackney
), but crashes at runtime in prod.
Notes
This is really more of an improvement to dev/x. Because of a circumstantial issue where hackney
was brought in from another project in a non-prod environment, things appeared to work fine out of the box. However, once deployed to prod, sentry blows up because suddenly hackney is missing. Since this is something that can be known at compile-time, it would save a bit of headache to catch it then if possible.
rlopzc
Metadata
Metadata
Assignees
Labels
No labels