Skip to content
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

feat(sentry): add stage with sentry_sdk[flask] to dockerfile #500

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

VincentCauchois
Copy link
Member

@VincentCauchois VincentCauchois commented May 27, 2024

⚠️ The main purpose of this PR is to make Sentry connection possible in the context of a deployment with Docker, using such a Compose file : https://github.com/PnX-SI/GeoNature-Docker-services/blob/main/docker-compose.yml

DESCRIPTION

The Python library sentry_sdk[flask] can be used to add a connection between the Flask application and a Sentry project by adding relevant lines in the config.py file.

See this docs for more information : https://docs.sentry.io/platforms/python/integrations/flask/#install

@VincentCauchois VincentCauchois added the dependencies Pull requests that update a dependency file label May 27, 2024
@VincentCauchois VincentCauchois self-assigned this May 27, 2024
Copy link
Contributor

@jacquesfize jacquesfize left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pour moi, sentry est optionnel donc il n'a pas sa place dans le requirement général... Une solution est de faire un flag sentry dans le setup.py. Il y a un exemple dans celui de GeoNature : https://github.com/PnX-SI/GeoNature/blob/a8b5e79e3dadc3cba656b90fed60b39f87c97605/setup.py#L33C1-L41C22

@VincentCauchois VincentCauchois force-pushed the feat/add-sentry-sdk-flask-library branch 3 times, most recently from 1f7fafa to 9ff2670 Compare May 27, 2024 15:25
@VincentCauchois VincentCauchois changed the title feat(sentry): add sentry_sdk[flask] library to requirements feat(sentry): add stage with sentry_sdk[flask] to dockerfile May 27, 2024
@VincentCauchois VincentCauchois force-pushed the feat/add-sentry-sdk-flask-library branch from 9ff2670 to 0231e48 Compare May 27, 2024 15:27
@VincentCauchois VincentCauchois added enhancement and removed dependencies Pull requests that update a dependency file labels May 27, 2024
Allow to use the command `pip install -e .['sentry']` to add the `sentry-sdk` library for Flask.
@VincentCauchois VincentCauchois force-pushed the feat/add-sentry-sdk-flask-library branch from 7657829 to 669a141 Compare May 29, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants