Skip to content

feat(tornado): Apply data_collection filtering to URL query strings#6834

Open
ericapisani wants to merge 2 commits into
py-2583-query-params-aiohttpfrom
py-2583-query-params-tornado
Open

feat(tornado): Apply data_collection filtering to URL query strings#6834
ericapisani wants to merge 2 commits into
py-2583-query-params-aiohttpfrom
py-2583-query-params-tornado

Conversation

@ericapisani

@ericapisani ericapisani commented Jul 16, 2026

Copy link
Copy Markdown
Member

Rebuild url.full from the parsed base URL plus the filtered query string
when data_collection is enabled, so filtered/redacted query params are
reflected in url.full instead of the raw request query. Previously the
unfiltered query string leaked into url.full even when data_collection
filtering was active.

Update the span-streaming tests to expect the filtered query in url.full
(and a bare path when filtering strips all params).

Refs PY-2583
Refs #6743

Rebuild url.full from the parsed base URL plus the filtered query string
when data_collection is enabled, so filtered/redacted query params are
reflected in url.full instead of the raw request query. Previously the
unfiltered query string leaked into url.full even when data_collection
filtering was active.

Update the span-streaming tests to expect the filtered query in url.full
(and a bare path when filtering strips all params).

Refs PY-2583
Refs #6743
@linear-code

linear-code Bot commented Jul 16, 2026

Copy link
Copy Markdown

PY-2583

Replace .format(SENSITIVE_DATA_SUBSTITUTE) calls with hard-coded [Filtered] strings in the query param data collection test cases for clearer expectations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ericapisani
ericapisani marked this pull request as ready for review July 16, 2026 19:06
@ericapisani
ericapisani requested a review from a team as a code owner July 16, 2026 19:06
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

93749 passed | ⏭️ 6302 skipped | Total: 100051 | Pass Rate: 93.7% | Execution Time: 332m 13s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +1895
Passed Tests 📈 +1895
Failed Tests
Skipped Tests

All tests are passing successfully.

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

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.67%    89.73%    +0.06%
==========================================
  Files          193       193         —
  Lines        24004     24154      +150
  Branches      8340      8448      +108
==========================================
+ Hits         21526     21674      +148
- Misses        2478      2480        +2
- Partials      1387      1394        +7

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