UNPKG

dd-trace

Version:

Datadog APM tracing client for JavaScript

16 lines (13 loc) 395 B
'use strict' const { addHook } = require('import-in-the-middle') const dc = require('dc-polyfill') const moduleLoadStartChannel = dc.channel('dd-trace:moduleLoadStart') addHook((name, namespace) => { if (moduleLoadStartChannel.hasSubscribers) { moduleLoadStartChannel.publish({ filename: name, module: namespace }) } }) module.exports = require('import-in-the-middle')