[chore] Upgrade datadog-metrics with patch to use undici#2256
Open
Drarig29 wants to merge 1 commit into
Open
Conversation
datadog-metrics to use an undici-backed reporter
Drarig29
commented
Apr 10, 2026
2594372 to
7cc8f47
Compare
datadog-metrics to use an undici-backed reporterdatadog-metrics with patch to use undici
7cc8f47 to
ece6c91
Compare
ava-silver
approved these changes
May 18, 2026
Contributor
ava-silver
left a comment
There was a problem hiding this comment.
Is there a plan to support this without the patch longer term?
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.
What and why?
Upgrades
datadog-metricsfrom0.9.3to0.13.0-pre.1and patches it to useundiciinstead ofcross-fetchas its HTTP transport. This lets metrics honor proxy settings (via undici's dispatcher) without relying on the removedagentoption orproxy-agent.How?
datadog-metricsto0.13.0-pre.1and remove the legacy@types/datadog-metricsdependencycross-fetch→undiciindatadog-metrics's reporterProxyAgentinstantiation andagentoption frommetrics.tsflushcall to useasync/awaitto match the new promise-based APIReview checklist