Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tracestate header from fetch cache key #76041

Merged
merged 3 commits into from
Feb 14, 2025

Conversation

blurrah
Copy link
Contributor

@blurrah blurrah commented Feb 14, 2025

What?

This change removes the tracestate header from the fetch cache key.

Why?

Next to traceparent this is also a W3C trace context header that can differ on every request leading rendering the fetch cache and deduplication useless. For example Sentry will add a random sample value to each request.

With this change it should remove all the trace context headers as defined here.

@ijjk
Copy link
Member

ijjk commented Feb 14, 2025

Allow CI Workflow Run

  • approve CI run for commit: 95dbfdc

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@gaojude gaojude added the CI approved Approve running CI for fork label Feb 14, 2025
@gaojude gaojude merged commit a79950d into vercel:canary Feb 14, 2025
108 of 110 checks passed
@lforst
Copy link
Contributor

lforst commented Feb 15, 2025

Saw that you mention Sentry here. We're neither using the traceparent nor the tracestate header. Just fyi. (we're using 'baggage' and 'sentry-trace')

@blurrah
Copy link
Contributor Author

blurrah commented Feb 16, 2025

Ah alright, I saw the dynamic sampling context in our tracestate headers but knowing otel some other library could be the culprit here. Will dive into it a bit more, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI approved Approve running CI for fork tests type: next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants