Skip to content

feat(node): add ClickHouse instrumentation - #26211

Open
adityareddy-dev wants to merge 4 commits into
getsentry:developfrom
adityareddy-dev:feat/node-clickhouse-instrumentation
Open

adityareddy-dev wants to merge 4 commits into
getsentry:developfrom
adityareddy-dev:feat/node-clickhouse-instrumentation

Conversation

@adityareddy-dev

@adityareddy-dev adityareddy-dev commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Why: Add DB spans for @clickhouse/client through Orchestrion, following the maintainer's go-ahead. Rejected calls set span status and still reach the caller without a separate captured error.

How to review: Start with the ClickHouse config and integration. The sanitizer is extracted with its existing exports preserved.

Unsure about: Clients with an explicit custom tracer can emit additional spans. The integration leaves that option alone.

Closes #15966

@github-actions github-actions Bot added the external PR from an external contributor label Nov 9, 2026
@adityareddy-dev adityareddy-dev changed the title feat(node): add ClickHouse instrumentation (AR-139) feat(node): add ClickHouse instrumentation Nov 9, 2026
@adityareddy-dev
adityareddy-dev marked this pull request as ready for review November 9, 2026 19:10
@adityareddy-dev
adityareddy-dev requested review from a team as code owners November 9, 2026 19:10
@adityareddy-dev
adityareddy-dev requested review from JPeer264, andreiborza, nicohrubec and s1gr1d and removed request for a team November 9, 2026 19:10
@adityareddy-dev
adityareddy-dev requested review from Lms24 and msonnb and removed request for a team November 9, 2026 19:10

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a75f505. Configure here.

The sanitizer stopped looking for the FORMAT clause once an INSERT reached
SELECT, so rows read through input() stayed in db.query.text. FORMAT is now
the data clause anywhere at the top level of an INSERT, unless the token
before it expects a name, as in SELECT format or FROM format.
@adityareddy-dev
adityareddy-dev requested a review from a team November 13, 2026 11:31
@adityareddy-dev

Copy link
Copy Markdown
Contributor Author

@JPeer264 can you approve the workflows on the latest push?

@JPeer264

Copy link
Copy Markdown
Member

@adityareddy-dev done. Btw I'll review that next week as something else came in this week. Also I'm not too familiar with clickhouse, so I have to go a bit deeper into it to give a proper review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external PR from an external contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clickhouse instrumentation (@clickhouse/client)

2 participants