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

Add basic Sentry integration and logging #1550

Merged
merged 7 commits into from
Jun 18, 2021

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Jun 4, 2021

What:
At startup and when forking gvmd will try to initialize Sentry using the
DSN set in the environment variable SENTRY_DSN_GVMD. When exiting
gvmd will close Sentry.
This will allow the logging in gvm-libs to send warnings and other more
critical error messages to the given Sentry DSN.

Why:
To allow monitoring QA and other test systems.

How did you test it:
By inserting test warnings in various places and triggering them while a Sentry DSN is set.

Checklist:

At startup and when forking gvmd will try to initialize Sentry using the
DSN set in the environment variable SENTRY_DSN_GVMD. When exiting
gvmd will close Sentry.
This will allow the logging in gvm-libs to send warnings and other more
critical error messages to the given Sentry DSN.
@timopollmeier timopollmeier marked this pull request as ready for review June 4, 2021 13:31
@timopollmeier timopollmeier requested a review from a team as a code owner June 4, 2021 13:31
@timopollmeier timopollmeier merged commit 5622dbe into greenbone:master Jun 18, 2021
@timopollmeier timopollmeier deleted the sentry-integration branch October 15, 2021 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants