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

chore(clickhouse): Capture final SQL in Sentry errors #21436

Merged
merged 10 commits into from
Apr 10, 2024

Conversation

Twixes
Copy link
Collaborator

@Twixes Twixes commented Apr 9, 2024

Problem

Trying to debug in a ClickHouse query that fails before execution (internal thread), but Sentry only has the SQL before formatting with args, and it's truncated – not helpful.

Changes

We should now be capturing the full SQL.

@Twixes Twixes requested a review from marandaneto April 9, 2024 11:53
@Twixes
Copy link
Collaborator Author

Twixes commented Apr 9, 2024

:O Let's use the new clickhouse-driver integration that we get by upgrading sentry-sdk:

Screenshot 2024-04-09 at 14 07 57

@Twixes Twixes force-pushed the capture-full-error-sql branch 2 times, most recently from 5b7892e to 8836050 Compare April 10, 2024 12:41
@Twixes Twixes merged commit 5edead9 into master Apr 10, 2024
11 checks passed
@Twixes Twixes deleted the capture-full-error-sql branch April 10, 2024 19:04
pauldambra added a commit that referenced this pull request Apr 10, 2024
timgl pushed a commit that referenced this pull request Apr 10, 2024
Revert "chore(clickhouse): Capture final SQL in Sentry errors (#21436)"

This reverts commit 5edead9.
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