Repository URL to install this package:
|
Version:
0.9.2-rc0 ▾
|
// (c) Copyright 2023 Supertenant Ltd. - all rights reserved.
// See LICENSE file in project root for license terms.
'use strict';
const instrument = require('cls-bluebird');
const requireHook = require('../../../util/requireHook');
const cls = require('../../cls');
exports.activate = function activate() {
// nothing to do
};
exports.deactivate = function deactivate() {
// nothing to do
};
exports.init = function init() {
requireHook.onModuleLoad('bluebird', patchBluebird);
};
function patchBluebird(bluebirdModule) {
instrument(cls.ns, bluebirdModule);
}