Skip to content

Commit

Permalink
updating version params for undici hook
Browse files Browse the repository at this point in the history
  • Loading branch information
crysmags committed Jun 3, 2024
1 parent 59c274c commit b24ed9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/datadog-instrumentations/src/undici.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { createWrapFetch } = require('./helpers/fetch')

addHook({
name: 'undici',
versions: ['^4.4.1', '5', '^6.0.0']
versions: ['^4.4.1', '5', '>=6.0.0']
}, undici => {
return shimmer.wrap(undici, 'fetch', createWrapFetch(undici.Request, ch))
})
1 change: 0 additions & 1 deletion packages/dd-trace/src/plugin_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ loadChannel.subscribe(({ name }) => {

// Globals
maybeEnable(require('../../datadog-plugin-fetch/src'))
maybeEnable(require('../../datadog-plugin-undici/src'))

function maybeEnable (Plugin) {
if (!Plugin || typeof Plugin !== 'function') return
Expand Down

0 comments on commit b24ed9a

Please sign in to comment.