-
Notifications
You must be signed in to change notification settings - Fork 67
Switch to Sentry #1345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to Sentry #1345
Conversation
- Delete the wrapper file - Don't copy the wrapper into the Docker image
Adds imports for - `os` for access to the system environment - `sentry_sdk` for Sentry goodness Adds a default Sentry config that is useful and verbose for development - This will only be enabled if a Sentry DSN is supplied, otherwise it is ignored - These defaults can/will be turned down a bit for production via our config repo
- Updates our Makefile with a new target to create an empty .env file if one does not already exist. If one already exists it won't be altered. - Updates the `web:` target to use the .env file when starting the container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few tiny things, but otherwise looks groovy!
Co-authored-by: melange396 <[email protected]>
I want to work on this a bit more so converting to draft for a little bit. |
1aab7a4
to
b7be446
Compare
- Set `debug` and `attach_stacktrace` to `False` - Reordered a bit - Added a decent way to make an env var work as a boolean - Better formatting (spaces around `=`)
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beautiful!
Summary:
We are migrating to Sentry for application observability needs.
The goal is to use it for both local development as well as (potentially) qa/staging/production/etc. environments.
This PR:
Removes and cleans up the New Relic config:
Adds the necessary Sentry bits:
Updates the local development setup to make it easy to instrument for Sentry (if desired):
.env
file if one doesn't already exist. We need to be able to pass in the Sentry DSN (and maybe other config), and putting this into.env
is best.delphi_web_epidata
with--env-file
to load vars from.env
Adds comments and README updates to help with a basic Sentry setup in:
.env.example
epidata_development.md