UNPKG

signalfx-tracing

Version:

Provides auto-instrumentation for JavaScript libraries and frameworks

18 lines (15 loc) 348 B
'use strict' const tx = require('./util/promise') module.exports = [ { name: 'when', file: 'lib/Promise.js', versions: ['>=3'], patch (Promise, tracer, config) { this.wrap(Promise.prototype, 'then', tx.createWrapThen(tracer, config)) }, unpatch (Promise) { this.unwrap(Promise.prototype, 'then') } } ]