Skip to content

fix: Include query string and fragment in url.full span attribute#6861

Draft
sentrivana wants to merge 1 commit into
masterfrom
ivana/fix-url-full-attribute
Draft

fix: Include query string and fragment in url.full span attribute#6861
sentrivana wants to merge 1 commit into
masterfrom
ivana/fix-url-full-attribute

Conversation

@sentrivana

@sentrivana sentrivana commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The url.full span attribute was only being set to the base URL (scheme + host + path), omitting query string and fragment
  • Fixed in aiohttp (server and client spans), httpx (sync and async), httpx2 (sync and async), and WSGI
  • ASGI and Quart were already setting the full URL correctly

Will wait with merging until the DataCollection stack is in, to not make rebasing it a nightmare.

Closes #6860

The `url.full` attribute was only being set to the base URL (scheme +
host + path), omitting query string and fragment. This affected aiohttp
(server and client), httpx, httpx2, and WSGI integrations. ASGI and
Quart were already correct.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sentrivana sentrivana changed the title fix: Include query string and fragment in url.full span attribute fix: Include query string and fragment in url.full span attribute Jul 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

92197 passed | ⏭️ 6304 skipped | Total: 98501 | Pass Rate: 93.6% | Execution Time: 310m 18s

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 97.37%. Project has 2479 uncovered lines.
✅ Project coverage is 89.7%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/aiohttp.py 90.00% ⚠️ 1 Missing and 2 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.70%    89.70%        —%
==========================================
  Files          193       193         —
  Lines        24039     24070       +31
  Branches      8354      8378       +24
==========================================
+ Hits         21562     21591       +29
- Misses        2477      2479        +2
- Partials      1386      1389        +3

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.

Audit if the url.full attribute contains the full URL

1 participant