@villedemontreal/correlation-id
Version:
Express middleware to set a correlation in Express. The correlation id will be consistent across async calls within the handling of a request.
17 lines • 566 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setTestingConfigurations = setTestingConfigurations;
const init_1 = require("../config/init");
const logger_1 = require("../utils/logger");
/**
* Call this when your need to set
* *Testing* configurations to the current
* library, without the need for a calling code
* to do so.
*
* A test Correlation Id will be used!
*/
function setTestingConfigurations() {
(0, init_1.init)((0, logger_1.getTestingLoggerCreator)());
}
//# sourceMappingURL=testingConfigurations.js.map