@vtex/diagnostics-nodejs
Version:
Diagnostics library for Node.js applications
9 lines • 370 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ensureContextPropagation = ensureContextPropagation;
const api_1 = require("@opentelemetry/api");
function ensureContextPropagation(downstreamFn) {
const activeContext = api_1.context.active();
api_1.context.with(activeContext, downstreamFn);
}
//# sourceMappingURL=core.js.map