autotel 2.25.3 → 2.25.4
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/{chunk-FXKB7EPR.cjs → chunk-A5ZUL2RZ.cjs} +5 -5
- package/dist/{chunk-FXKB7EPR.cjs.map → chunk-A5ZUL2RZ.cjs.map} +1 -1
- package/dist/{chunk-SR35DG5A.js → chunk-BBBWDIYQ.js} +27 -13
- package/dist/chunk-BBBWDIYQ.js.map +1 -0
- package/dist/{chunk-3ZLYWPMY.js → chunk-CMUM4JQI.js} +3 -3
- package/dist/{chunk-3ZLYWPMY.js.map → chunk-CMUM4JQI.js.map} +1 -1
- package/dist/{chunk-AQXPGGQK.cjs → chunk-EEJGUBWV.cjs} +5 -5
- package/dist/{chunk-AQXPGGQK.cjs.map → chunk-EEJGUBWV.cjs.map} +1 -1
- package/dist/{chunk-W4EUTSB2.cjs → chunk-HZ3FYBJG.cjs} +27 -12
- package/dist/chunk-HZ3FYBJG.cjs.map +1 -0
- package/dist/{chunk-WOWTZ4EB.cjs → chunk-I6JPSD4R.cjs} +5 -5
- package/dist/{chunk-WOWTZ4EB.cjs.map → chunk-I6JPSD4R.cjs.map} +1 -1
- package/dist/{chunk-XRKAL7WJ.cjs → chunk-JSNUWSBH.cjs} +6 -6
- package/dist/chunk-JSNUWSBH.cjs.map +1 -0
- package/dist/{chunk-OWXXS4JB.cjs → chunk-MN6PZ4AN.cjs} +7 -7
- package/dist/{chunk-OWXXS4JB.cjs.map → chunk-MN6PZ4AN.cjs.map} +1 -1
- package/dist/{chunk-JM63D22M.js → chunk-OPTGXEVN.js} +368 -349
- package/dist/chunk-OPTGXEVN.js.map +1 -0
- package/dist/{chunk-PKXD2RMI.js → chunk-QDREXAD7.js} +3 -3
- package/dist/{chunk-PKXD2RMI.js.map → chunk-QDREXAD7.js.map} +1 -1
- package/dist/{chunk-RMGSBMQF.cjs → chunk-QQLP4M6W.cjs} +372 -353
- package/dist/chunk-QQLP4M6W.cjs.map +1 -0
- package/dist/{chunk-USSL3D6L.js → chunk-S4OFEXLA.js} +6 -6
- package/dist/chunk-S4OFEXLA.js.map +1 -0
- package/dist/{chunk-VVYSQXQL.js → chunk-WYP6OOCT.js} +3 -3
- package/dist/{chunk-VVYSQXQL.js.map → chunk-WYP6OOCT.js.map} +1 -1
- package/dist/{chunk-IFKDBL65.js → chunk-XB2GITM5.js} +3 -3
- package/dist/{chunk-IFKDBL65.js.map → chunk-XB2GITM5.js.map} +1 -1
- package/dist/correlation-id.cjs +10 -9
- package/dist/correlation-id.d.cts +4 -1
- package/dist/correlation-id.d.ts +4 -1
- package/dist/correlation-id.js +2 -1
- package/dist/decorators.cjs +4 -4
- package/dist/decorators.js +3 -3
- package/dist/event.cjs +6 -5
- package/dist/event.js +3 -2
- package/dist/functional.cjs +10 -10
- package/dist/functional.js +3 -3
- package/dist/http.cjs +2 -2
- package/dist/http.js +1 -1
- package/dist/index.cjs +45 -45
- package/dist/index.js +10 -10
- package/dist/messaging.cjs +7 -7
- package/dist/messaging.js +4 -4
- package/dist/semantic-helpers.cjs +8 -8
- package/dist/semantic-helpers.js +4 -4
- package/dist/webhook.cjs +4 -4
- package/dist/webhook.js +3 -3
- package/dist/workflow-distributed.cjs +5 -5
- package/dist/workflow-distributed.js +3 -3
- package/dist/workflow.cjs +8 -8
- package/dist/workflow.js +4 -4
- package/package.json +1 -1
- package/src/correlation-id.ts +10 -5
- package/src/functional.ts +440 -420
- package/src/trace-context.test.ts +73 -0
- package/src/trace-context.ts +44 -12
- package/dist/chunk-JM63D22M.js.map +0 -1
- package/dist/chunk-RMGSBMQF.cjs.map +0 -1
- package/dist/chunk-SR35DG5A.js.map +0 -1
- package/dist/chunk-USSL3D6L.js.map +0 -1
- package/dist/chunk-W4EUTSB2.cjs.map +0 -1
- package/dist/chunk-XRKAL7WJ.cjs.map +0 -1
package/dist/workflow.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-W4EUTSB2.cjs');
|
|
3
|
+
var chunkEEJGUBWV_cjs = require('./chunk-EEJGUBWV.cjs');
|
|
4
|
+
require('./chunk-QQLP4M6W.cjs');
|
|
6
5
|
require('./chunk-GML3FBOT.cjs');
|
|
7
6
|
require('./chunk-D5LMF53P.cjs');
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-JSNUWSBH.cjs');
|
|
8
|
+
require('./chunk-HZ3FYBJG.cjs');
|
|
9
9
|
require('./chunk-ITYASFHQ.cjs');
|
|
10
10
|
require('./chunk-OFPZULMQ.cjs');
|
|
11
11
|
require('./chunk-KZEC4CHV.cjs');
|
|
@@ -25,19 +25,19 @@ require('./chunk-JEQ2X3Z6.cjs');
|
|
|
25
25
|
|
|
26
26
|
Object.defineProperty(exports, "getCurrentWorkflowContext", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkEEJGUBWV_cjs.getCurrentWorkflowContext; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "isInWorkflow", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkEEJGUBWV_cjs.isInWorkflow; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "traceStep", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkEEJGUBWV_cjs.traceStep; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "traceWorkflow", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkEEJGUBWV_cjs.traceWorkflow; }
|
|
41
41
|
});
|
|
42
42
|
//# sourceMappingURL=workflow.cjs.map
|
|
43
43
|
//# sourceMappingURL=workflow.cjs.map
|
package/dist/workflow.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { getCurrentWorkflowContext, isInWorkflow, traceStep, traceWorkflow } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-SR35DG5A.js';
|
|
1
|
+
export { getCurrentWorkflowContext, isInWorkflow, traceStep, traceWorkflow } from './chunk-WYP6OOCT.js';
|
|
2
|
+
import './chunk-OPTGXEVN.js';
|
|
4
3
|
import './chunk-B3ZHLLMP.js';
|
|
5
4
|
import './chunk-WD4RP6IV.js';
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-S4OFEXLA.js';
|
|
6
|
+
import './chunk-BBBWDIYQ.js';
|
|
7
7
|
import './chunk-MNBAXRVG.js';
|
|
8
8
|
import './chunk-RUD7KS4R.js';
|
|
9
9
|
import './chunk-XDKK53OL.js';
|
package/package.json
CHANGED
package/src/correlation-id.ts
CHANGED
|
@@ -24,12 +24,17 @@
|
|
|
24
24
|
|
|
25
25
|
import { trace, propagation, context } from '@opentelemetry/api';
|
|
26
26
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
27
|
+
import { enterOrRun } from './trace-context';
|
|
28
|
+
|
|
29
|
+
type CorrelationStore = {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
27
32
|
|
|
28
33
|
/**
|
|
29
34
|
* AsyncLocalStorage for storing correlation ID
|
|
30
35
|
* This allows correlation IDs to persist across async boundaries
|
|
31
36
|
*/
|
|
32
|
-
const correlationStorage = new AsyncLocalStorage<
|
|
37
|
+
const correlationStorage = new AsyncLocalStorage<CorrelationStore>();
|
|
33
38
|
|
|
34
39
|
/**
|
|
35
40
|
* Baggage key for correlation ID propagation
|
|
@@ -79,7 +84,7 @@ export function generateCorrelationId(): string {
|
|
|
79
84
|
*/
|
|
80
85
|
export function getCorrelationId(): string | undefined {
|
|
81
86
|
// 1. Check AsyncLocalStorage first (explicit correlation ID)
|
|
82
|
-
const storedId = correlationStorage.getStore();
|
|
87
|
+
const storedId = correlationStorage.getStore()?.value;
|
|
83
88
|
if (storedId) {
|
|
84
89
|
return storedId;
|
|
85
90
|
}
|
|
@@ -140,7 +145,7 @@ export function getOrCreateCorrelationId(): string {
|
|
|
140
145
|
* ```
|
|
141
146
|
*/
|
|
142
147
|
export function runWithCorrelationId<T>(correlationId: string, fn: () => T): T {
|
|
143
|
-
return correlationStorage.run(correlationId, fn);
|
|
148
|
+
return correlationStorage.run({ value: correlationId }, fn);
|
|
144
149
|
}
|
|
145
150
|
|
|
146
151
|
/**
|
|
@@ -158,7 +163,7 @@ export function runWithCorrelationId<T>(correlationId: string, fn: () => T): T {
|
|
|
158
163
|
* ```
|
|
159
164
|
*/
|
|
160
165
|
export function setCorrelationId(correlationId: string): void {
|
|
161
|
-
correlationStorage
|
|
166
|
+
enterOrRun(correlationStorage, correlationId);
|
|
162
167
|
}
|
|
163
168
|
|
|
164
169
|
/**
|
|
@@ -196,6 +201,6 @@ export function setCorrelationIdInBaggage(
|
|
|
196
201
|
/**
|
|
197
202
|
* Get the correlation storage instance (for internal use in init/shutdown)
|
|
198
203
|
*/
|
|
199
|
-
export function getCorrelationStorage(): AsyncLocalStorage<
|
|
204
|
+
export function getCorrelationStorage(): AsyncLocalStorage<CorrelationStore> {
|
|
200
205
|
return correlationStorage;
|
|
201
206
|
}
|