@instana/core
Version:
Core library for Instana's Node.js packages
27 lines (20 loc) • 528 B
JavaScript
/*
* (c) Copyright IBM Corp. 2021
* (c) Copyright Instana Inc. and contributors 2019
*/
;
const instrument = require('cls-bluebird');
const hook = require('../../../util/hook');
const cls = require('../../cls');
exports.activate = function activate() {
// nothing to do
};
exports.deactivate = function deactivate() {
// nothing to do
};
exports.init = function init() {
hook.onModuleLoad('bluebird', patchBluebird);
};
function patchBluebird(bluebirdModule) {
instrument(cls.ns, bluebirdModule);
}