Repository navigation
[WO-2056] Report each redirect hop's URL on fetch spans - #8093
Draft
jmorrell-cloudflare wants to merge 1 commit into
Draft
jmorrell-cloudflare wants to merge 1 commit into
jmorrell-cloudflare wants to merge 1 commit into
Conversation
Use the dispatch URL of each redirect hop for url.full instead of repeating the initial request URL. Preserve fragments in the tracing value even though they are not sent over HTTP. Keep the original request URL unchanged for the first hop, including relative Durable Object URLs on older compatibility dates. This changes telemetry only, not fetch behavior. Cover multi-hop redirects, fragments on redirected URLs and legacy relative URLs. Validate tail event ordering after collection so assertion failures are reported directly.
jmorrell-cloudflare
force-pushed
the
jmorrell/fetch-span-url
branch
from
October 30, 2026 14:52
a66c4f8 to
3a59c36
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8093 +/- ##
==========================================
- Coverage 68.49% 68.46% -0.04%
==========================================
Files 721 722 +1
Lines 186640 186743 +103
Branches 29363 29366 +3
==========================================
+ Hits 127836 127848 +12
- Misses 41638 41727 +89
- Partials 17166 17168 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Built-in
fetchspans reported the wrong URL after a redirect: every hop carried the first request's URL inurl.full, and in theurl.pathandurl.queryderived from it.Each redirect hop now reports the URL it actually sent, with the fragment kept. The first hop still reports the URL as given, so relative Durable Object URLs on old compatibility dates stay relative.
Heads up: this isn't behind a compatibility flag, so the corrected URLs show up at every compatibility date.