autotel 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attribute-redacting-processor.cjs +0 -1
- package/dist/attribute-redacting-processor.js +0 -1
- package/dist/attributes.cjs +0 -1
- package/dist/attributes.js +0 -1
- package/dist/auto.cjs +5 -6
- package/dist/auto.cjs.map +1 -1
- package/dist/auto.js +3 -4
- package/dist/auto.js.map +1 -1
- package/dist/business-baggage.cjs +0 -1
- package/dist/business-baggage.js +0 -1
- package/dist/{chunk-H5YFU4SF.js → chunk-6VVEOLG5.js} +4 -4
- package/dist/{chunk-H5YFU4SF.js.map → chunk-6VVEOLG5.js.map} +1 -1
- package/dist/{chunk-XCFDXZF3.cjs → chunk-727YZJUB.cjs} +7 -7
- package/dist/{chunk-XCFDXZF3.cjs.map → chunk-727YZJUB.cjs.map} +1 -1
- package/dist/{chunk-3SDILILG.js → chunk-7NDHLHZK.js} +3 -3
- package/dist/{chunk-3SDILILG.js.map → chunk-7NDHLHZK.js.map} +1 -1
- package/dist/{chunk-DAZ7EGR4.cjs → chunk-ADZDAWNV.cjs} +17 -17
- package/dist/{chunk-DAZ7EGR4.cjs.map → chunk-ADZDAWNV.cjs.map} +1 -1
- package/dist/{chunk-NCSMD3TK.cjs → chunk-BGAR6MCX.cjs} +4 -4
- package/dist/{chunk-NCSMD3TK.cjs.map → chunk-BGAR6MCX.cjs.map} +1 -1
- package/dist/{chunk-OC6X2VIN.cjs → chunk-BTEPYWDF.cjs} +4 -4
- package/dist/{chunk-OC6X2VIN.cjs.map → chunk-BTEPYWDF.cjs.map} +1 -1
- package/dist/chunk-EQIY6C3X.cjs +25 -0
- package/dist/chunk-EQIY6C3X.cjs.map +1 -0
- package/dist/{chunk-HLAVN3JR.js → chunk-I7ODAZJL.js} +3 -3
- package/dist/{chunk-HLAVN3JR.js.map → chunk-I7ODAZJL.js.map} +1 -1
- package/dist/{chunk-Z7VAOK5X.js → chunk-IC4AZUGC.js} +3 -3
- package/dist/{chunk-Z7VAOK5X.js.map → chunk-IC4AZUGC.js.map} +1 -1
- package/dist/{chunk-BPO2PQ3T.cjs → chunk-ISEHXVMD.cjs} +30 -26
- package/dist/chunk-ISEHXVMD.cjs.map +1 -0
- package/dist/{chunk-S4S4AINO.js → chunk-JITYRSI4.js} +5 -5
- package/dist/{chunk-S4S4AINO.js.map → chunk-JITYRSI4.js.map} +1 -1
- package/dist/{chunk-KKGM42RQ.cjs → chunk-KAELJC6T.cjs} +13 -13
- package/dist/{chunk-KKGM42RQ.cjs.map → chunk-KAELJC6T.cjs.map} +1 -1
- package/dist/{chunk-ZJ5E5OFB.js → chunk-KGBRZ7J5.js} +3 -3
- package/dist/{chunk-ZJ5E5OFB.js.map → chunk-KGBRZ7J5.js.map} +1 -1
- package/dist/{chunk-33WTKH7X.js → chunk-KPNV2GPW.js} +4 -4
- package/dist/chunk-KPNV2GPW.js.map +1 -0
- package/dist/{chunk-IRJHH6PH.cjs → chunk-LOTJ7SDI.cjs} +5 -5
- package/dist/{chunk-IRJHH6PH.cjs.map → chunk-LOTJ7SDI.cjs.map} +1 -1
- package/dist/{chunk-OM4OSBOP.js → chunk-MAITXZFR.js} +4 -4
- package/dist/{chunk-OM4OSBOP.js.map → chunk-MAITXZFR.js.map} +1 -1
- package/dist/{chunk-DSMSIVTG.js → chunk-MBEHEGQE.js} +3 -3
- package/dist/{chunk-DSMSIVTG.js.map → chunk-MBEHEGQE.js.map} +1 -1
- package/dist/{chunk-K4UDKM3P.cjs → chunk-NC5BG7B3.cjs} +11 -11
- package/dist/{chunk-K4UDKM3P.cjs.map → chunk-NC5BG7B3.cjs.map} +1 -1
- package/dist/{chunk-ZDPIWKWD.js → chunk-SIMG4IGE.js} +18 -14
- package/dist/chunk-SIMG4IGE.js.map +1 -0
- package/dist/{chunk-TY4NXDYR.cjs → chunk-VNMT2TDZ.cjs} +36 -36
- package/dist/{chunk-TY4NXDYR.cjs.map → chunk-VNMT2TDZ.cjs.map} +1 -1
- package/dist/config.cjs +0 -1
- package/dist/config.js +0 -1
- package/dist/correlation-id.cjs +12 -13
- package/dist/correlation-id.js +4 -5
- package/dist/db.cjs +0 -1
- package/dist/db.cjs.map +1 -1
- package/dist/db.js +0 -1
- package/dist/db.js.map +1 -1
- package/dist/decorators.cjs +7 -8
- package/dist/decorators.cjs.map +1 -1
- package/dist/decorators.js +6 -7
- package/dist/decorators.js.map +1 -1
- package/dist/drain-pipeline.cjs +0 -1
- package/dist/drain-pipeline.js +0 -1
- package/dist/enrichers.cjs +0 -2
- package/dist/enrichers.cjs.map +1 -1
- package/dist/enrichers.js +0 -2
- package/dist/enrichers.js.map +1 -1
- package/dist/event-testing.cjs +0 -1
- package/dist/event-testing.js +0 -1
- package/dist/event.cjs +8 -9
- package/dist/event.js +5 -6
- package/dist/exporters.cjs +0 -1
- package/dist/exporters.js +0 -1
- package/dist/filtering-span-processor.cjs +0 -1
- package/dist/filtering-span-processor.js +0 -1
- package/dist/functional.cjs +13 -14
- package/dist/functional.js +6 -7
- package/dist/http.cjs +5 -6
- package/dist/http.cjs.map +1 -1
- package/dist/http.js +4 -5
- package/dist/http.js.map +1 -1
- package/dist/index.cjs +82 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -15
- package/dist/index.js.map +1 -1
- package/dist/{init-D6JfWEjL.d.ts → init-BSyIyDs5.d.ts} +36 -1
- package/dist/{init-CMuTaFAV.d.cts → init-D9Bxx39e.d.cts} +36 -1
- package/dist/instrumentation.cjs +11 -12
- package/dist/instrumentation.cjs.map +1 -1
- package/dist/instrumentation.js +3 -4
- package/dist/instrumentation.js.map +1 -1
- package/dist/logger.cjs +0 -1
- package/dist/logger.js +0 -1
- package/dist/messaging-adapters.cjs +1 -1
- package/dist/messaging-adapters.js +1 -1
- package/dist/messaging-testing.cjs +0 -2
- package/dist/messaging-testing.cjs.map +1 -1
- package/dist/messaging-testing.js +0 -2
- package/dist/messaging-testing.js.map +1 -1
- package/dist/messaging.cjs +10 -11
- package/dist/messaging.js +7 -8
- package/dist/metric-helpers.cjs +0 -1
- package/dist/metric-helpers.js +0 -1
- package/dist/metric-testing.cjs +0 -1
- package/dist/metric-testing.js +0 -1
- package/dist/metric.cjs +0 -1
- package/dist/metric.js +0 -1
- package/dist/parse-error.cjs +0 -1
- package/dist/parse-error.js +0 -1
- package/dist/processors.cjs +0 -1
- package/dist/processors.js +0 -1
- package/dist/sampling.cjs +0 -1
- package/dist/sampling.js +0 -1
- package/dist/semantic-conventions.cjs +0 -1
- package/dist/semantic-conventions.js +0 -1
- package/dist/semantic-helpers.cjs +11 -12
- package/dist/semantic-helpers.js +7 -8
- package/dist/span-name-normalizer.cjs +0 -1
- package/dist/span-name-normalizer.js +0 -1
- package/dist/tail-sampling-processor.cjs +0 -1
- package/dist/tail-sampling-processor.js +0 -1
- package/dist/test-span-collector.cjs +1 -1
- package/dist/test-span-collector.js +1 -1
- package/dist/testing.cjs +0 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +0 -1
- package/dist/testing.js.map +1 -1
- package/dist/trace-helpers.cjs +14 -15
- package/dist/trace-helpers.js +2 -3
- package/dist/tracer-provider.cjs +0 -1
- package/dist/tracer-provider.js +0 -1
- package/dist/webhook.cjs +8 -9
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.js +6 -7
- package/dist/webhook.js.map +1 -1
- package/dist/workflow-distributed.cjs +8 -9
- package/dist/workflow-distributed.cjs.map +1 -1
- package/dist/workflow-distributed.js +6 -7
- package/dist/workflow-distributed.js.map +1 -1
- package/dist/workflow.cjs +11 -12
- package/dist/workflow.js +7 -8
- package/dist/yaml-config.cjs +5 -6
- package/dist/yaml-config.d.cts +1 -1
- package/dist/yaml-config.d.ts +1 -1
- package/dist/yaml-config.js +2 -3
- package/package.json +1 -1
- package/src/init.customization.test.ts +80 -0
- package/src/init.ts +78 -15
- package/src/node-require.ts +7 -5
- package/dist/chunk-33WTKH7X.js.map +0 -1
- package/dist/chunk-BPO2PQ3T.cjs.map +0 -1
- package/dist/chunk-DGUM43GV.js +0 -10
- package/dist/chunk-DGUM43GV.js.map +0 -1
- package/dist/chunk-JEQ2X3Z6.cjs +0 -12
- package/dist/chunk-JEQ2X3Z6.cjs.map +0 -1
- package/dist/chunk-YS6C2YJE.cjs +0 -25
- package/dist/chunk-YS6C2YJE.cjs.map +0 -1
- package/dist/chunk-ZDPIWKWD.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBGAR6MCX_cjs = require('./chunk-BGAR6MCX.cjs');
|
|
4
4
|
var chunkVQTCQKHQ_cjs = require('./chunk-VQTCQKHQ.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkKAELJC6T_cjs = require('./chunk-KAELJC6T.cjs');
|
|
6
|
+
var chunkISEHXVMD_cjs = require('./chunk-ISEHXVMD.cjs');
|
|
7
7
|
var chunkVH77IPJN_cjs = require('./chunk-VH77IPJN.cjs');
|
|
8
8
|
var chunkESLWRGAG_cjs = require('./chunk-ESLWRGAG.cjs');
|
|
9
9
|
var api = require('@opentelemetry/api');
|
|
@@ -342,7 +342,7 @@ function shouldSkip(key, fn, skip) {
|
|
|
342
342
|
function getCtxValue() {
|
|
343
343
|
const activeSpan = api.trace.getActiveSpan();
|
|
344
344
|
if (!activeSpan) return null;
|
|
345
|
-
return
|
|
345
|
+
return chunkKAELJC6T_cjs.createTraceContext(activeSpan);
|
|
346
346
|
}
|
|
347
347
|
var ctx = new Proxy(
|
|
348
348
|
{},
|
|
@@ -407,17 +407,17 @@ function wrapWithTracing(fnFactory, options, variableName) {
|
|
|
407
407
|
}
|
|
408
408
|
const startTime = performance.now();
|
|
409
409
|
const isRootSpan = options.startNewRoot || api.trace.getActiveSpan() === void 0;
|
|
410
|
-
const shouldAutoFlush = options.flushOnRootSpanEnd ??
|
|
411
|
-
const shouldAutoFlushSpans =
|
|
410
|
+
const shouldAutoFlush = options.flushOnRootSpanEnd ?? chunkISEHXVMD_cjs.getConfig()?.flushOnRootSpanEnd ?? true;
|
|
411
|
+
const shouldAutoFlushSpans = chunkISEHXVMD_cjs.getConfig()?.forceFlushOnShutdown ?? false;
|
|
412
412
|
const flushIfNeeded = async () => {
|
|
413
413
|
if (!shouldAutoFlush || !isRootSpan) return;
|
|
414
414
|
try {
|
|
415
|
-
const queue =
|
|
415
|
+
const queue = chunkKAELJC6T_cjs.getEventQueue();
|
|
416
416
|
if (queue && queue.size() > 0) {
|
|
417
417
|
await queue.flush();
|
|
418
418
|
}
|
|
419
419
|
if (shouldAutoFlushSpans) {
|
|
420
|
-
const sdk =
|
|
420
|
+
const sdk = chunkISEHXVMD_cjs.getSdk();
|
|
421
421
|
if (sdk) {
|
|
422
422
|
try {
|
|
423
423
|
const sdkAny = sdk;
|
|
@@ -432,7 +432,7 @@ function wrapWithTracing(fnFactory, options, variableName) {
|
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
} catch (error) {
|
|
435
|
-
const initConfig =
|
|
435
|
+
const initConfig = chunkISEHXVMD_cjs.getConfig();
|
|
436
436
|
const logger = initConfig?.logger;
|
|
437
437
|
if (logger?.error) {
|
|
438
438
|
logger.error(
|
|
@@ -451,7 +451,7 @@ function wrapWithTracing(fnFactory, options, variableName) {
|
|
|
451
451
|
if (options.spanKind !== void 0) {
|
|
452
452
|
spanOptions.kind = options.spanKind;
|
|
453
453
|
}
|
|
454
|
-
const parentContext =
|
|
454
|
+
const parentContext = chunkKAELJC6T_cjs.getActiveContextWithBaggage();
|
|
455
455
|
return tracer.startActiveSpan(
|
|
456
456
|
spanName,
|
|
457
457
|
spanOptions,
|
|
@@ -459,13 +459,13 @@ function wrapWithTracing(fnFactory, options, variableName) {
|
|
|
459
459
|
async (span2) => {
|
|
460
460
|
return chunkVQTCQKHQ_cjs.runInOperationContext(spanName, async () => {
|
|
461
461
|
let shouldKeepSpan = true;
|
|
462
|
-
|
|
462
|
+
chunkBGAR6MCX_cjs.setSpanName(span2, spanName);
|
|
463
463
|
const initialContext = api.context.active();
|
|
464
|
-
const contextStorage =
|
|
464
|
+
const contextStorage = chunkKAELJC6T_cjs.getContextStorage();
|
|
465
465
|
if (!contextStorage.getStore()) {
|
|
466
|
-
|
|
466
|
+
chunkKAELJC6T_cjs.enterOrRun(contextStorage, initialContext);
|
|
467
467
|
}
|
|
468
|
-
const ctxValue =
|
|
468
|
+
const ctxValue = chunkKAELJC6T_cjs.createTraceContext(span2);
|
|
469
469
|
const fn = fnFactory(ctxValue);
|
|
470
470
|
const argsAttributes = options.attributesFromArgs ? options.attributesFromArgs(args) : {};
|
|
471
471
|
const handleTailSampling = (success, duration, error) => {
|
|
@@ -550,7 +550,7 @@ function wrapWithTracing(fnFactory, options, variableName) {
|
|
|
550
550
|
status: "started"
|
|
551
551
|
});
|
|
552
552
|
const executeWithContext = async () => {
|
|
553
|
-
const currentContext =
|
|
553
|
+
const currentContext = chunkKAELJC6T_cjs.getActiveContextWithBaggage();
|
|
554
554
|
return api.context.with(currentContext, async () => {
|
|
555
555
|
return fn.call(this, ...args);
|
|
556
556
|
});
|
|
@@ -602,14 +602,14 @@ function wrapWithTracingSync(fnFactory, options, variableName) {
|
|
|
602
602
|
}
|
|
603
603
|
const startTime = performance.now();
|
|
604
604
|
const isRootSpan = options.startNewRoot || api.trace.getActiveSpan() === void 0;
|
|
605
|
-
const shouldAutoFlush = options.flushOnRootSpanEnd ??
|
|
606
|
-
const shouldAutoFlushSpans =
|
|
605
|
+
const shouldAutoFlush = options.flushOnRootSpanEnd ?? chunkISEHXVMD_cjs.getConfig()?.flushOnRootSpanEnd ?? true;
|
|
606
|
+
const shouldAutoFlushSpans = chunkISEHXVMD_cjs.getConfig()?.forceFlushOnShutdown ?? false;
|
|
607
607
|
const flushIfNeeded = () => {
|
|
608
608
|
if (!shouldAutoFlush || !isRootSpan) return;
|
|
609
|
-
const queue =
|
|
609
|
+
const queue = chunkKAELJC6T_cjs.getEventQueue();
|
|
610
610
|
if (queue && queue.size() > 0) {
|
|
611
611
|
void queue.flush().catch((error) => {
|
|
612
|
-
const initConfig =
|
|
612
|
+
const initConfig = chunkISEHXVMD_cjs.getConfig();
|
|
613
613
|
const logger = initConfig?.logger;
|
|
614
614
|
if (logger?.error) {
|
|
615
615
|
logger.error(
|
|
@@ -622,7 +622,7 @@ function wrapWithTracingSync(fnFactory, options, variableName) {
|
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
624
|
if (shouldAutoFlushSpans) {
|
|
625
|
-
const sdk =
|
|
625
|
+
const sdk = chunkISEHXVMD_cjs.getSdk();
|
|
626
626
|
if (sdk) {
|
|
627
627
|
try {
|
|
628
628
|
const sdkAny = sdk;
|
|
@@ -630,7 +630,7 @@ function wrapWithTracingSync(fnFactory, options, variableName) {
|
|
|
630
630
|
const tracerProvider = sdkAny.getTracerProvider();
|
|
631
631
|
if (tracerProvider && typeof tracerProvider.forceFlush === "function") {
|
|
632
632
|
void tracerProvider.forceFlush().catch((error) => {
|
|
633
|
-
const initConfig =
|
|
633
|
+
const initConfig = chunkISEHXVMD_cjs.getConfig();
|
|
634
634
|
const logger = initConfig?.logger;
|
|
635
635
|
if (logger?.error) {
|
|
636
636
|
logger.error(
|
|
@@ -655,7 +655,7 @@ function wrapWithTracingSync(fnFactory, options, variableName) {
|
|
|
655
655
|
if (options.spanKind !== void 0) {
|
|
656
656
|
spanOptions.kind = options.spanKind;
|
|
657
657
|
}
|
|
658
|
-
const parentContext =
|
|
658
|
+
const parentContext = chunkKAELJC6T_cjs.getActiveContextWithBaggage();
|
|
659
659
|
return tracer.startActiveSpan(
|
|
660
660
|
spanName,
|
|
661
661
|
spanOptions,
|
|
@@ -663,8 +663,8 @@ function wrapWithTracingSync(fnFactory, options, variableName) {
|
|
|
663
663
|
(span2) => {
|
|
664
664
|
return chunkVQTCQKHQ_cjs.runInOperationContext(spanName, () => {
|
|
665
665
|
let shouldKeepSpan = true;
|
|
666
|
-
|
|
667
|
-
const ctxValue =
|
|
666
|
+
chunkBGAR6MCX_cjs.setSpanName(span2, spanName);
|
|
667
|
+
const ctxValue = chunkKAELJC6T_cjs.createTraceContext(span2);
|
|
668
668
|
const fn = fnFactory(ctxValue);
|
|
669
669
|
const argsAttributes = options.attributesFromArgs ? options.attributesFromArgs(args) : {};
|
|
670
670
|
const handleTailSampling = (success, duration, error) => {
|
|
@@ -779,8 +779,8 @@ function executeImmediately(fn, options) {
|
|
|
779
779
|
}
|
|
780
780
|
const startTime = performance.now();
|
|
781
781
|
const isRootSpan = options.startNewRoot || api.trace.getActiveSpan() === void 0;
|
|
782
|
-
const shouldAutoFlush = options.flushOnRootSpanEnd ??
|
|
783
|
-
const shouldAutoFlushSpans =
|
|
782
|
+
const shouldAutoFlush = options.flushOnRootSpanEnd ?? chunkISEHXVMD_cjs.getConfig()?.flushOnRootSpanEnd ?? true;
|
|
783
|
+
const shouldAutoFlushSpans = chunkISEHXVMD_cjs.getConfig()?.forceFlushOnShutdown ?? false;
|
|
784
784
|
const callCounter = options.withMetrics ? meter.createCounter(`${spanName}.calls`, {
|
|
785
785
|
description: `Call count for ${spanName}`,
|
|
786
786
|
unit: "1"
|
|
@@ -792,12 +792,12 @@ function executeImmediately(fn, options) {
|
|
|
792
792
|
const flushIfNeeded = async () => {
|
|
793
793
|
if (!shouldAutoFlush || !isRootSpan) return;
|
|
794
794
|
try {
|
|
795
|
-
const queue =
|
|
795
|
+
const queue = chunkKAELJC6T_cjs.getEventQueue();
|
|
796
796
|
if (queue && queue.size() > 0) {
|
|
797
797
|
await queue.flush();
|
|
798
798
|
}
|
|
799
799
|
if (shouldAutoFlushSpans) {
|
|
800
|
-
const sdk =
|
|
800
|
+
const sdk = chunkISEHXVMD_cjs.getSdk();
|
|
801
801
|
if (sdk) {
|
|
802
802
|
try {
|
|
803
803
|
const sdkAny = sdk;
|
|
@@ -812,7 +812,7 @@ function executeImmediately(fn, options) {
|
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
} catch (error) {
|
|
815
|
-
const initConfig =
|
|
815
|
+
const initConfig = chunkISEHXVMD_cjs.getConfig();
|
|
816
816
|
const logger = initConfig?.logger;
|
|
817
817
|
if (logger?.error) {
|
|
818
818
|
logger.error(
|
|
@@ -831,7 +831,7 @@ function executeImmediately(fn, options) {
|
|
|
831
831
|
if (options.spanKind !== void 0) {
|
|
832
832
|
spanOptions.kind = options.spanKind;
|
|
833
833
|
}
|
|
834
|
-
const parentContext =
|
|
834
|
+
const parentContext = chunkKAELJC6T_cjs.getActiveContextWithBaggage();
|
|
835
835
|
return tracer.startActiveSpan(
|
|
836
836
|
spanName,
|
|
837
837
|
spanOptions,
|
|
@@ -839,8 +839,8 @@ function executeImmediately(fn, options) {
|
|
|
839
839
|
(span2) => {
|
|
840
840
|
return chunkVQTCQKHQ_cjs.runInOperationContext(spanName, () => {
|
|
841
841
|
let shouldKeepSpan = true;
|
|
842
|
-
|
|
843
|
-
const ctxValue =
|
|
842
|
+
chunkBGAR6MCX_cjs.setSpanName(span2, spanName);
|
|
843
|
+
const ctxValue = chunkKAELJC6T_cjs.createTraceContext(span2);
|
|
844
844
|
const handleTailSampling = (success, duration, error) => {
|
|
845
845
|
if (needsTailSampling && "shouldKeepTrace" in sampler && typeof sampler.shouldKeepTrace === "function") {
|
|
846
846
|
shouldKeepSpan = sampler.shouldKeepTrace(samplingContext, {
|
|
@@ -1122,7 +1122,7 @@ function span(nameOrOptions, fn) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
});
|
|
1124
1124
|
};
|
|
1125
|
-
const parentContext =
|
|
1125
|
+
const parentContext = chunkKAELJC6T_cjs.getActiveContextWithBaggage();
|
|
1126
1126
|
const result = tracer.startActiveSpan(name, {}, parentContext, executeSpan);
|
|
1127
1127
|
if (result instanceof Promise) {
|
|
1128
1128
|
return result;
|
|
@@ -1157,7 +1157,7 @@ function withBaggage(options) {
|
|
|
1157
1157
|
updatedBaggage = updatedBaggage.setEntry(key, { value });
|
|
1158
1158
|
}
|
|
1159
1159
|
const newContext = api.propagation.setBaggage(currentContext, updatedBaggage);
|
|
1160
|
-
const ctxStorage =
|
|
1160
|
+
const ctxStorage = chunkKAELJC6T_cjs.getContextStorage();
|
|
1161
1161
|
const previousStored = ctxStorage.getStore();
|
|
1162
1162
|
const baggageEnrichedStored = previousStored ? { value: api.propagation.setBaggage(previousStored.value, updatedBaggage) } : { value: newContext };
|
|
1163
1163
|
const result = previousStored ? ctxStorage.run(baggageEnrichedStored, () => api.context.with(newContext, fn)) : api.context.with(newContext, fn);
|
|
@@ -1189,5 +1189,5 @@ exports.trace = trace;
|
|
|
1189
1189
|
exports.withBaggage = withBaggage;
|
|
1190
1190
|
exports.withNewContext = withNewContext;
|
|
1191
1191
|
exports.withTracing = withTracing;
|
|
1192
|
-
//# sourceMappingURL=chunk-
|
|
1193
|
-
//# sourceMappingURL=chunk-
|
|
1192
|
+
//# sourceMappingURL=chunk-VNMT2TDZ.cjs.map
|
|
1193
|
+
//# sourceMappingURL=chunk-VNMT2TDZ.cjs.map
|