UNPKG

@vtex/diagnostics-nodejs

Version:

Diagnostics library for Node.js applications

9 lines 370 B
"use strict"; 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