Page MenuHomeSoftware Heritage

Add gunicorn config script to initialize sentry-sdk based on envvars.
ClosedPublic

Authored by vlorentz on Dec 9 2019, 4:28 PM.

Diff Detail

Repository
rDCORE Foundations and core functionalities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

I don't know how to fix the tests. It's failing in the non-http envs, because I only install sentry-sdk (with the flask extra) for http.

olasd added a subscriber: olasd.

Looks like phabricator messed up the stacking here. See comments on the other diff.

Before merging, could you add a rationale for using the post_fork hook as a comment or docstring here? I guess the point is to do the sentry sdk init as early as possible in every worker, but making that explicit would surely help the next person understand that.

This revision is now accepted and ready to land.Dec 10 2019, 12:03 PM

add rational for using post_fork

This revision was landed with ongoing or failed builds.Dec 10 2019, 1:53 PM
This revision was automatically updated to reflect the committed changes.