Skip to content

feat(tracing): Gate SQL query params behind data collection options - #6976

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

feat(tracing): Gate SQL query params behind data collection options#6976
ericapisani wants to merge 1 commit into
masterfrom
py-2587-tracing-utils

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Record SQL params and paramstyle in record_sql_queries based on the new data_collection.database_query_data option instead of the _experiments.record_sql_params flag. When data collection is enabled, it takes precedence over the legacy flag; otherwise the legacy behavior is preserved until the experiment is removed.

Refs PY-2587

Record SQL params and paramstyle in `record_sql_queries` based on the new
`data_collection.database_query_data` option instead of the
`_experiments.record_sql_params` flag. When data collection is enabled, it
takes precedence over the legacy flag; otherwise the legacy behavior is
preserved until the experiment is removed.

Refs PY-2587
@ericapisani
ericapisani requested a review from a team as a code owner July 31, 2026 15:23
@linear-code

linear-code Bot commented Jul 31, 2026

Copy link
Copy Markdown

PY-2587

@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

100505 passed | ⏭️ 7021 skipped | Total: 107526 | Pass Rate: 93.47% | Execution Time: 358m 37s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +6201
Passed Tests 📈 +5524
Failed Tests 📉 -1
Skipped Tests 📈 +678

➖ Removed Tests (1)

View removed tests
  • test_continuous_profiler_auto_start_and_stop_sampled[non-experiment-thread]
    • File: tests.profiler.test_continuous_profiler

All tests are passing successfully.

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

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.91%    89.92%    +0.01%
==========================================
  Files          193       193         —
  Lines        24832     24840        +8
  Branches      8912      8920        +8
==========================================
+ Hits         22326     22336       +10
- Misses        2506      2504        -2
- Partials      1417      1413        -4

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