Skip to content

feat(clickhouse_driver): Respect data_collection.database_query_data option - #6938

Open
ericapisani wants to merge 1 commit into
masterfrom
py-2587-clickhouse
Open

feat(clickhouse_driver): Respect data_collection.database_query_data option#6938
ericapisani wants to merge 1 commit into
masterfrom
py-2587-clickhouse

Conversation

@ericapisani

@ericapisani ericapisani commented Jul 29, 2026

Copy link
Copy Markdown
Member

The ClickHouse driver integration now respects the experimental data_collection.database_query_data option when deciding whether to attach db.params and db.result to spans and breadcrumbs.

When the option is set, it takes precedence over send_default_pii: database_query_data: True attaches query params and results even without PII enabled, and database_query_data: False suppresses them even when send_default_pii=True. When the option is not set, behavior is unchanged and falls back to the existing send_default_pii check.

Refs PY-2587
Refs #6747

…option

Honour the new `data_collection.database_query_data` experimental option
when deciding whether to attach `db.params` and `db.result` to spans and
breadcrumbs. When the option is set, it takes precedence over
`send_default_pii`; otherwise, fall back to the existing PII-based
behavior.

Refs PY-2587
Refs #6747
@linear-code

linear-code Bot commented Jul 29, 2026

Copy link
Copy Markdown

PY-2587

@ericapisani
ericapisani marked this pull request as ready for review July 29, 2026 18:47
@ericapisani
ericapisani requested a review from a team as a code owner July 29, 2026 18:47
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

99316 passed | ⏭️ 6781 skipped | Total: 106097 | Pass Rate: 93.61% | Execution Time: 355m 17s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +441
Passed Tests 📈 +438
Failed Tests 📉 -1
Skipped Tests 📈 +4

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2498 uncovered lines.
✅ Project coverage is 89.88%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.87%    89.88%    +0.01%
==========================================
  Files          193       193         —
  Lines        24656     24678       +22
  Branches      8786      8806       +20
==========================================
+ Hits         22158     22180       +22
- Misses        2498      2498         —
- Partials      1400      1400         —

Generated by Codecov Action

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