UNPKG

signalfx-tracing

Version:

Provides auto-instrumentation for JavaScript libraries and frameworks

17 lines (14 loc) 317 B
'use strict' const tx = require('./util/promise') module.exports = [ { name: 'q', versions: ['>=1'], patch (Q, tracer, config) { this.wrap(Q.makePromise.prototype, 'then', tx.createWrapThen(tracer, config)) }, unpatch (Q) { this.unwrap(Q.makePromise.prototype, 'then') } } ]