UNPKG

dd-trace

Version:

Datadog APM tracing client for JavaScript

17 lines (13 loc) 536 B
'use strict' const { registerLambdaHook } = require('./runtime/ritm') /** * It is safe to do it this way, since customers will never be expected to disable * this specific instrumentation through the init config object. */ const _DD_TRACE_DISABLED_INSTRUMENTATIONS = process.env.DD_TRACE_DISABLED_INSTRUMENTATIONS || '' const _disabledInstrumentations = new Set( _DD_TRACE_DISABLED_INSTRUMENTATIONS ? _DD_TRACE_DISABLED_INSTRUMENTATIONS.split(',') : [] ) if (!_disabledInstrumentations.has('lambda')) { registerLambdaHook() }