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

Fix FormData handling in fetch instrumentation #139

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

dvoytenko
Copy link
Member

@dvoytenko dvoytenko commented Jan 24, 2025

Undici regenerates multipart separator for each instantiation of Request and it does NOT overwrite the previous value. In order to avoid the problem, the content-type header must be cleared on a cloned request.

fixes https://linear.app/vercel/issue/O11Y-1298/i-can-replicate-the-issue-related-to-connecting-datadog-when-the

Copy link

vercel bot commented Jan 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
otel-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2025 6:04pm

@dvoytenko dvoytenko merged commit 4019976 into main Jan 24, 2025
8 checks passed
@dvoytenko dvoytenko deleted the dimavoytenko/fetch-formdata branch January 24, 2025 18:07
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