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

DM-48801: Enable Sentry error logging for TAP service and transactions for Query Runner #127

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

stvoutsin
Copy link
Member

Description

PR to bring Sentry into the CADC TAP service (Qserv-based one). Specifically this allows errors to propagate into Sentry Issues, and also adds tracing for queries via the QServQueryRunner.

The new features are optional and only enabled if the SENTRY_DSN environment variable is set, which then depends on it being enabled in phalanx for the environment for which we with to enable it.

When building locally, if we want the stack trace to include detailed context with code where the error occurred included we need to enable SENTRY_AUTH_TOKEN to a token we get from SENTRY.

Jira Issue

https://rubinobs.atlassian.net/browse/DM-48801

Tests

I've tested on an env with SENTRY_DSN enabled, and then the same build with SENTRY_DSN disabled in phalanx to ensure that tracing doesn't get sent in the second case

@stvoutsin stvoutsin force-pushed the tickets/DM-48801 branch 3 times, most recently from e90838f to 863e353 Compare February 20, 2025 15:03
@stvoutsin stvoutsin merged commit a23eb25 into master Feb 20, 2025
2 checks passed
@stvoutsin stvoutsin deleted the tickets/DM-48801 branch February 20, 2025 15:34
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.

1 participant