diff --git a/packages/datadog-instrumentations/src/http2/client.js b/packages/datadog-instrumentations/src/http2/client.js index 5e2fb0742bc..de4957318ae 100644 --- a/packages/datadog-instrumentations/src/http2/client.js +++ b/packages/datadog-instrumentations/src/http2/client.js @@ -30,6 +30,8 @@ function createWrapEmit (ctx) { function createWrapRequest (authority, options) { return function wrapRequest (request) { return function (headers) { + if (!startChannel.hasSubscribers) return request.apply(this, arguments) + const ctx = { headers, authority, options } return startChannel.runStores(ctx, () => {