autotel 3.4.1 → 3.4.3
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/binding.gyp +9 -0
- package/dist/auto.cjs +5 -5
- package/dist/auto.js +3 -3
- package/dist/{chunk-N2YZ4INO.cjs → chunk-AC5GNZKB.cjs} +11 -11
- package/dist/{chunk-N2YZ4INO.cjs.map → chunk-AC5GNZKB.cjs.map} +1 -1
- package/dist/{chunk-T3VKOAUG.js → chunk-ALPYR2GC.js} +4 -4
- package/dist/{chunk-T3VKOAUG.js.map → chunk-ALPYR2GC.js.map} +1 -1
- package/dist/{chunk-FSV7ANUE.js → chunk-CMHVQR6P.js} +3 -3
- package/dist/{chunk-FSV7ANUE.js.map → chunk-CMHVQR6P.js.map} +1 -1
- package/dist/{chunk-LTI7LSBY.js → chunk-DQEHQNQE.js} +3 -3
- package/dist/{chunk-LTI7LSBY.js.map → chunk-DQEHQNQE.js.map} +1 -1
- package/dist/{chunk-WTLNZPM2.cjs → chunk-FGNDN2FD.cjs} +36 -36
- package/dist/{chunk-WTLNZPM2.cjs.map → chunk-FGNDN2FD.cjs.map} +1 -1
- package/dist/{chunk-BCD3ANVQ.cjs → chunk-GBFTC7Q7.cjs} +17 -17
- package/dist/{chunk-BCD3ANVQ.cjs.map → chunk-GBFTC7Q7.cjs.map} +1 -1
- package/dist/{chunk-AEVI4EYC.js → chunk-HT5JQKN2.js} +3 -3
- package/dist/{chunk-AEVI4EYC.js.map → chunk-HT5JQKN2.js.map} +1 -1
- package/dist/{chunk-23BO5PKU.cjs → chunk-NVAI5CCN.cjs} +3 -3
- package/dist/{chunk-23BO5PKU.cjs.map → chunk-NVAI5CCN.cjs.map} +1 -1
- package/dist/{chunk-DXFLHZH2.js → chunk-NVGPMGI4.js} +3 -3
- package/dist/{chunk-DXFLHZH2.js.map → chunk-NVGPMGI4.js.map} +1 -1
- package/dist/{chunk-MHCCHVMJ.js → chunk-O4JZUCUE.js} +3 -3
- package/dist/{chunk-MHCCHVMJ.js.map → chunk-O4JZUCUE.js.map} +1 -1
- package/dist/{chunk-U4IPC2D3.js → chunk-O7JOKRN2.js} +4 -4
- package/dist/{chunk-U4IPC2D3.js.map → chunk-O7JOKRN2.js.map} +1 -1
- package/dist/{chunk-JTJV2S4R.cjs → chunk-OPPXYVEZ.cjs} +4 -4
- package/dist/{chunk-JTJV2S4R.cjs.map → chunk-OPPXYVEZ.cjs.map} +1 -1
- package/dist/{chunk-DUCUF6VK.js → chunk-Q4EULJQY.js} +2 -2
- package/dist/{chunk-DUCUF6VK.js.map → chunk-Q4EULJQY.js.map} +1 -1
- package/dist/{chunk-UBN2TONI.cjs → chunk-QWW3E3JM.cjs} +4 -4
- package/dist/{chunk-UBN2TONI.cjs.map → chunk-QWW3E3JM.cjs.map} +1 -1
- package/dist/{chunk-UTGGVEA5.cjs → chunk-R7QYGZUP.cjs} +16 -16
- package/dist/{chunk-UTGGVEA5.cjs.map → chunk-R7QYGZUP.cjs.map} +1 -1
- package/dist/{chunk-63ABFG2Q.js → chunk-URHPSJW2.js} +4 -4
- package/dist/{chunk-63ABFG2Q.js.map → chunk-URHPSJW2.js.map} +1 -1
- package/dist/{chunk-MG6AZNVT.cjs → chunk-VG2ABKJX.cjs} +7 -7
- package/dist/{chunk-MG6AZNVT.cjs.map → chunk-VG2ABKJX.cjs.map} +1 -1
- package/dist/{chunk-MEY6VAC3.js → chunk-YWCESU4Y.js} +5 -5
- package/dist/{chunk-MEY6VAC3.js.map → chunk-YWCESU4Y.js.map} +1 -1
- package/dist/{chunk-BCXQOCZX.cjs → chunk-Z6HRSM2Y.cjs} +5 -5
- package/dist/{chunk-BCXQOCZX.cjs.map → chunk-Z6HRSM2Y.cjs.map} +1 -1
- package/dist/{chunk-Q73BZ3JR.cjs → chunk-Z7PW3KHL.cjs} +13 -13
- package/dist/{chunk-Q73BZ3JR.cjs.map → chunk-Z7PW3KHL.cjs.map} +1 -1
- package/dist/correlation-id.cjs +12 -12
- package/dist/correlation-id.js +4 -4
- package/dist/decorators.cjs +7 -7
- package/dist/decorators.js +6 -6
- package/dist/event.cjs +8 -8
- package/dist/event.js +5 -5
- package/dist/functional.cjs +14 -14
- package/dist/functional.js +6 -6
- package/dist/http.cjs +5 -5
- package/dist/http.js +4 -4
- package/dist/index.cjs +89 -85
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -14
- package/dist/{init-DyE43paw.d.ts → init-DIowiiCh.d.ts} +5 -1
- package/dist/{init-gyesUMwz.d.cts → init-j-A1zI16.d.cts} +5 -1
- package/dist/instrumentation.cjs +11 -11
- package/dist/instrumentation.js +3 -3
- package/dist/messaging.cjs +10 -10
- package/dist/messaging.js +7 -7
- package/dist/semantic-helpers.cjs +11 -11
- package/dist/semantic-helpers.js +7 -7
- package/dist/trace-helpers.cjs +14 -14
- package/dist/trace-helpers.js +2 -2
- package/dist/webhook.cjs +8 -8
- package/dist/webhook.js +6 -6
- package/dist/workflow-distributed.cjs +8 -8
- package/dist/workflow-distributed.js +6 -6
- package/dist/workflow.cjs +11 -11
- package/dist/workflow.js +7 -7
- package/dist/yaml-config.cjs +5 -5
- package/dist/yaml-config.d.cts +1 -1
- package/dist/yaml-config.d.ts +1 -1
- package/dist/yaml-config.js +2 -2
- package/index.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +7 -1
- package/src/node-require.ts +2 -1
package/dist/index.cjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk7EQ4G4SI_cjs = require('./chunk-7EQ4G4SI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkAC5GNZKB_cjs = require('./chunk-AC5GNZKB.cjs');
|
|
5
5
|
var chunkM3LFHHTN_cjs = require('./chunk-M3LFHHTN.cjs');
|
|
6
6
|
var chunk2ZKEORFN_cjs = require('./chunk-2ZKEORFN.cjs');
|
|
7
7
|
var chunkESMHTKLJ_cjs = require('./chunk-ESMHTKLJ.cjs');
|
|
8
8
|
var chunkT4B5LB6E_cjs = require('./chunk-T4B5LB6E.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunkZ6HRSM2Y_cjs = require('./chunk-Z6HRSM2Y.cjs');
|
|
10
10
|
var chunk4P6ZOARG_cjs = require('./chunk-4P6ZOARG.cjs');
|
|
11
11
|
var chunkINJD3G4K_cjs = require('./chunk-INJD3G4K.cjs');
|
|
12
12
|
var chunkTC5ZPWM4_cjs = require('./chunk-TC5ZPWM4.cjs');
|
|
13
13
|
require('./chunk-YTXEZ4SD.cjs');
|
|
14
14
|
var chunkWJH6IYU2_cjs = require('./chunk-WJH6IYU2.cjs');
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
15
|
+
var chunkVG2ABKJX_cjs = require('./chunk-VG2ABKJX.cjs');
|
|
16
|
+
var chunkFGNDN2FD_cjs = require('./chunk-FGNDN2FD.cjs');
|
|
17
|
+
var chunkOPPXYVEZ_cjs = require('./chunk-OPPXYVEZ.cjs');
|
|
18
|
+
var chunkGBFTC7Q7_cjs = require('./chunk-GBFTC7Q7.cjs');
|
|
19
19
|
require('./chunk-NZ72VDNY.cjs');
|
|
20
20
|
require('./chunk-UY3UYPBZ.cjs');
|
|
21
21
|
var chunkVQTCQKHQ_cjs = require('./chunk-VQTCQKHQ.cjs');
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
require('./chunk-
|
|
22
|
+
var chunkZ7PW3KHL_cjs = require('./chunk-Z7PW3KHL.cjs');
|
|
23
|
+
var chunkR7QYGZUP_cjs = require('./chunk-R7QYGZUP.cjs');
|
|
24
|
+
require('./chunk-QWW3E3JM.cjs');
|
|
25
25
|
require('./chunk-CEAQK2QY.cjs');
|
|
26
26
|
var chunkZNMBW67B_cjs = require('./chunk-ZNMBW67B.cjs');
|
|
27
27
|
var chunkIOYFAFHJ_cjs = require('./chunk-IOYFAFHJ.cjs');
|
|
28
28
|
var chunkNEIB3TLD_cjs = require('./chunk-NEIB3TLD.cjs');
|
|
29
29
|
require('./chunk-CU6IDACR.cjs');
|
|
30
30
|
var chunk6S5RUKU3_cjs = require('./chunk-6S5RUKU3.cjs');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-NVAI5CCN.cjs');
|
|
32
32
|
var chunkVH77IPJN_cjs = require('./chunk-VH77IPJN.cjs');
|
|
33
33
|
require('./chunk-FU6R566Y.cjs');
|
|
34
34
|
require('./chunk-ESLWRGAG.cjs');
|
|
@@ -55,7 +55,7 @@ var otelMethods = {
|
|
|
55
55
|
setSpanContext: api.trace.setSpanContext
|
|
56
56
|
};
|
|
57
57
|
var trace2 = Object.assign(
|
|
58
|
-
|
|
58
|
+
chunkFGNDN2FD_cjs.trace,
|
|
59
59
|
otelMethods
|
|
60
60
|
);
|
|
61
61
|
function defineEvent(name, schema, options = {}) {
|
|
@@ -75,7 +75,7 @@ function defineEvent(name, schema, options = {}) {
|
|
|
75
75
|
`Invalid payload for event "${name}". Schema validation failed.`
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
chunkZ7PW3KHL_cjs.track(
|
|
79
79
|
name,
|
|
80
80
|
parsed.data,
|
|
81
81
|
schemaMetadata ? { schema: schemaMetadata } : void 0
|
|
@@ -103,7 +103,7 @@ async function flush(options) {
|
|
|
103
103
|
const timeout = options?.timeout ?? 2e3;
|
|
104
104
|
const forShutdown = options?.forShutdown ?? false;
|
|
105
105
|
const doFlush = async () => {
|
|
106
|
-
const eventsQueue =
|
|
106
|
+
const eventsQueue = chunkZ7PW3KHL_cjs.getEventQueue();
|
|
107
107
|
if (eventsQueue) {
|
|
108
108
|
if (forShutdown) {
|
|
109
109
|
await eventsQueue.shutdown();
|
|
@@ -111,7 +111,7 @@ async function flush(options) {
|
|
|
111
111
|
await eventsQueue.flush();
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
const sdk =
|
|
114
|
+
const sdk = chunkR7QYGZUP_cjs.getSdk();
|
|
115
115
|
if (sdk) {
|
|
116
116
|
try {
|
|
117
117
|
const sdkAny = sdk;
|
|
@@ -145,7 +145,7 @@ async function flush(options) {
|
|
|
145
145
|
if (timeoutHandle) {
|
|
146
146
|
clearTimeout(timeoutHandle);
|
|
147
147
|
}
|
|
148
|
-
const logger =
|
|
148
|
+
const logger = chunkR7QYGZUP_cjs.getLogger();
|
|
149
149
|
logger.error(
|
|
150
150
|
{
|
|
151
151
|
err: error instanceof Error ? error : new Error(String(error))
|
|
@@ -156,7 +156,7 @@ async function flush(options) {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
async function shutdown() {
|
|
159
|
-
const logger =
|
|
159
|
+
const logger = chunkR7QYGZUP_cjs.getLogger();
|
|
160
160
|
let shutdownError = null;
|
|
161
161
|
try {
|
|
162
162
|
await flush({ forShutdown: true });
|
|
@@ -171,7 +171,7 @@ async function shutdown() {
|
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
try {
|
|
174
|
-
const sdk =
|
|
174
|
+
const sdk = chunkR7QYGZUP_cjs.getSdk();
|
|
175
175
|
if (sdk) {
|
|
176
176
|
await sdk.shutdown();
|
|
177
177
|
}
|
|
@@ -185,14 +185,14 @@ async function shutdown() {
|
|
|
185
185
|
logger.error({ err }, "[autotel] SDK shutdown failed");
|
|
186
186
|
}
|
|
187
187
|
} finally {
|
|
188
|
-
await
|
|
189
|
-
const eventsQueue =
|
|
188
|
+
await chunkR7QYGZUP_cjs._closeEmbeddedDevtools();
|
|
189
|
+
const eventsQueue = chunkZ7PW3KHL_cjs.getEventQueue();
|
|
190
190
|
if (eventsQueue && typeof eventsQueue.cleanup === "function") {
|
|
191
191
|
eventsQueue.cleanup();
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
chunkGBFTC7Q7_cjs.resetEvents();
|
|
194
194
|
chunkTC5ZPWM4_cjs.resetMetrics();
|
|
195
|
-
|
|
195
|
+
chunkZ7PW3KHL_cjs.resetEventQueue();
|
|
196
196
|
}
|
|
197
197
|
if (shutdownError) {
|
|
198
198
|
throw shutdownError;
|
|
@@ -207,7 +207,7 @@ function registerShutdownHooks() {
|
|
|
207
207
|
if (shuttingDown) return;
|
|
208
208
|
shuttingDown = true;
|
|
209
209
|
if (process.env.NODE_ENV !== "test") {
|
|
210
|
-
|
|
210
|
+
chunkR7QYGZUP_cjs.getLogger().info(
|
|
211
211
|
{},
|
|
212
212
|
`[autotel] Received ${signal}, flushing telemetry...`
|
|
213
213
|
);
|
|
@@ -215,7 +215,7 @@ function registerShutdownHooks() {
|
|
|
215
215
|
try {
|
|
216
216
|
await shutdown();
|
|
217
217
|
} catch (error) {
|
|
218
|
-
|
|
218
|
+
chunkR7QYGZUP_cjs.getLogger().error(
|
|
219
219
|
{
|
|
220
220
|
err: error instanceof Error ? error : void 0
|
|
221
221
|
},
|
|
@@ -265,7 +265,7 @@ function resolveContext(ctx2) {
|
|
|
265
265
|
"[autotel] getRequestLogger() requires an active span or runWithRequestContext(). Wrap your handler with trace() or use runWithRequestContext()."
|
|
266
266
|
);
|
|
267
267
|
}
|
|
268
|
-
return
|
|
268
|
+
return chunkZ7PW3KHL_cjs.createTraceContext(span2);
|
|
269
269
|
}
|
|
270
270
|
function getRequestLogger(ctx2, options) {
|
|
271
271
|
const activeContext = resolveContext(ctx2);
|
|
@@ -273,7 +273,7 @@ function getRequestLogger(ctx2, options) {
|
|
|
273
273
|
let emitted = false;
|
|
274
274
|
let lastSnapshot = null;
|
|
275
275
|
const addLogEvent = (level, message, fields) => {
|
|
276
|
-
const attrs2 = fields ?
|
|
276
|
+
const attrs2 = fields ? chunkZ7PW3KHL_cjs.flattenToAttributes(fields) : void 0;
|
|
277
277
|
chunk4P6ZOARG_cjs.emitCorrelatedEvent(activeContext, `log.${level}`, {
|
|
278
278
|
message,
|
|
279
279
|
...attrs2 ?? {}
|
|
@@ -292,7 +292,7 @@ function getRequestLogger(ctx2, options) {
|
|
|
292
292
|
sealCheck("log.set()", Object.keys(fields));
|
|
293
293
|
if (emitted) return;
|
|
294
294
|
mergeInto(contextState, fields);
|
|
295
|
-
activeContext.setAttributes(
|
|
295
|
+
activeContext.setAttributes(chunkZ7PW3KHL_cjs.flattenToAttributes(fields));
|
|
296
296
|
},
|
|
297
297
|
info(message, fields) {
|
|
298
298
|
const keys = fields ? ["message", ...Object.keys(fields).filter((k) => k !== "requestLogs")] : ["message"];
|
|
@@ -301,7 +301,7 @@ function getRequestLogger(ctx2, options) {
|
|
|
301
301
|
addLogEvent("info", message, fields);
|
|
302
302
|
if (fields) {
|
|
303
303
|
mergeInto(contextState, fields);
|
|
304
|
-
activeContext.setAttributes(
|
|
304
|
+
activeContext.setAttributes(chunkZ7PW3KHL_cjs.flattenToAttributes(fields));
|
|
305
305
|
}
|
|
306
306
|
},
|
|
307
307
|
warn(message, fields) {
|
|
@@ -312,7 +312,7 @@ function getRequestLogger(ctx2, options) {
|
|
|
312
312
|
activeContext.setAttribute("autotel.log.level", "warn");
|
|
313
313
|
if (fields) {
|
|
314
314
|
mergeInto(contextState, fields);
|
|
315
|
-
activeContext.setAttributes(
|
|
315
|
+
activeContext.setAttributes(chunkZ7PW3KHL_cjs.flattenToAttributes(fields));
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
318
|
error(error, fields) {
|
|
@@ -320,11 +320,11 @@ function getRequestLogger(ctx2, options) {
|
|
|
320
320
|
sealCheck("log.error()", keys);
|
|
321
321
|
if (emitted) return;
|
|
322
322
|
const err = typeof error === "string" ? new Error(error) : error;
|
|
323
|
-
|
|
323
|
+
chunkZ7PW3KHL_cjs.recordStructuredError(activeContext, err);
|
|
324
324
|
addLogEvent("error", err.message, fields);
|
|
325
325
|
if (fields) {
|
|
326
326
|
mergeInto(contextState, fields);
|
|
327
|
-
activeContext.setAttributes(
|
|
327
|
+
activeContext.setAttributes(chunkZ7PW3KHL_cjs.flattenToAttributes(fields));
|
|
328
328
|
}
|
|
329
329
|
activeContext.setAttribute("autotel.log.level", "error");
|
|
330
330
|
},
|
|
@@ -340,7 +340,7 @@ function getRequestLogger(ctx2, options) {
|
|
|
340
340
|
...contextState,
|
|
341
341
|
...overrides ?? {}
|
|
342
342
|
};
|
|
343
|
-
const flattened =
|
|
343
|
+
const flattened = chunkZ7PW3KHL_cjs.flattenToAttributes(mergedContext);
|
|
344
344
|
activeContext.setAttributes(flattened);
|
|
345
345
|
const snapshot = {
|
|
346
346
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -372,7 +372,7 @@ function getRequestLogger(ctx2, options) {
|
|
|
372
372
|
const lifecycle = forkOptions?.lifecycle;
|
|
373
373
|
void tracer.startActiveSpan(`request.fork:${label}`, (childSpan) => {
|
|
374
374
|
const childContext = {
|
|
375
|
-
...
|
|
375
|
+
...chunkZ7PW3KHL_cjs.createTraceContext(childSpan),
|
|
376
376
|
correlationId: crypto.randomUUID()
|
|
377
377
|
};
|
|
378
378
|
requestContextStore.run(childContext, () => {
|
|
@@ -427,7 +427,7 @@ function defineErrorCatalog(namespace, entries) {
|
|
|
427
427
|
const options = usesParams ? maybeOptions : paramsOrOptions;
|
|
428
428
|
const message = typeof entry.message === "function" ? entry.message(params) : entry.message;
|
|
429
429
|
const why = typeof entry.why === "function" ? entry.why(params) : entry.why;
|
|
430
|
-
const error =
|
|
430
|
+
const error = chunkZ7PW3KHL_cjs.createStructuredError({
|
|
431
431
|
message,
|
|
432
432
|
name: entry.name ?? key,
|
|
433
433
|
code,
|
|
@@ -784,19 +784,19 @@ Object.defineProperty(exports, "createDrainPipeline", {
|
|
|
784
784
|
});
|
|
785
785
|
Object.defineProperty(exports, "getCurrentWorkflowContext", {
|
|
786
786
|
enumerable: true,
|
|
787
|
-
get: function () { return
|
|
787
|
+
get: function () { return chunkAC5GNZKB_cjs.getCurrentWorkflowContext; }
|
|
788
788
|
});
|
|
789
789
|
Object.defineProperty(exports, "isInWorkflow", {
|
|
790
790
|
enumerable: true,
|
|
791
|
-
get: function () { return
|
|
791
|
+
get: function () { return chunkAC5GNZKB_cjs.isInWorkflow; }
|
|
792
792
|
});
|
|
793
793
|
Object.defineProperty(exports, "traceStep", {
|
|
794
794
|
enumerable: true,
|
|
795
|
-
get: function () { return
|
|
795
|
+
get: function () { return chunkAC5GNZKB_cjs.traceStep; }
|
|
796
796
|
});
|
|
797
797
|
Object.defineProperty(exports, "traceWorkflow", {
|
|
798
798
|
enumerable: true,
|
|
799
|
-
get: function () { return
|
|
799
|
+
get: function () { return chunkAC5GNZKB_cjs.traceWorkflow; }
|
|
800
800
|
});
|
|
801
801
|
Object.defineProperty(exports, "attrs", {
|
|
802
802
|
enumerable: true,
|
|
@@ -888,11 +888,11 @@ Object.defineProperty(exports, "parseError", {
|
|
|
888
888
|
});
|
|
889
889
|
Object.defineProperty(exports, "traceConsumer", {
|
|
890
890
|
enumerable: true,
|
|
891
|
-
get: function () { return
|
|
891
|
+
get: function () { return chunkZ6HRSM2Y_cjs.traceConsumer; }
|
|
892
892
|
});
|
|
893
893
|
Object.defineProperty(exports, "traceProducer", {
|
|
894
894
|
enumerable: true,
|
|
895
|
-
get: function () { return
|
|
895
|
+
get: function () { return chunkZ6HRSM2Y_cjs.traceProducer; }
|
|
896
896
|
});
|
|
897
897
|
Object.defineProperty(exports, "BusinessBaggage", {
|
|
898
898
|
enumerable: true,
|
|
@@ -936,103 +936,103 @@ Object.defineProperty(exports, "getMeter", {
|
|
|
936
936
|
});
|
|
937
937
|
Object.defineProperty(exports, "traceDB", {
|
|
938
938
|
enumerable: true,
|
|
939
|
-
get: function () { return
|
|
939
|
+
get: function () { return chunkVG2ABKJX_cjs.traceDB; }
|
|
940
940
|
});
|
|
941
941
|
Object.defineProperty(exports, "traceHTTP", {
|
|
942
942
|
enumerable: true,
|
|
943
|
-
get: function () { return
|
|
943
|
+
get: function () { return chunkVG2ABKJX_cjs.traceHTTP; }
|
|
944
944
|
});
|
|
945
945
|
Object.defineProperty(exports, "traceLLM", {
|
|
946
946
|
enumerable: true,
|
|
947
|
-
get: function () { return
|
|
947
|
+
get: function () { return chunkVG2ABKJX_cjs.traceLLM; }
|
|
948
948
|
});
|
|
949
949
|
Object.defineProperty(exports, "traceMessaging", {
|
|
950
950
|
enumerable: true,
|
|
951
|
-
get: function () { return
|
|
951
|
+
get: function () { return chunkVG2ABKJX_cjs.traceMessaging; }
|
|
952
952
|
});
|
|
953
953
|
Object.defineProperty(exports, "ctx", {
|
|
954
954
|
enumerable: true,
|
|
955
|
-
get: function () { return
|
|
955
|
+
get: function () { return chunkFGNDN2FD_cjs.ctx; }
|
|
956
956
|
});
|
|
957
957
|
Object.defineProperty(exports, "instrument", {
|
|
958
958
|
enumerable: true,
|
|
959
|
-
get: function () { return
|
|
959
|
+
get: function () { return chunkFGNDN2FD_cjs.instrument; }
|
|
960
960
|
});
|
|
961
961
|
Object.defineProperty(exports, "markAsImmediate", {
|
|
962
962
|
enumerable: true,
|
|
963
|
-
get: function () { return
|
|
963
|
+
get: function () { return chunkFGNDN2FD_cjs.markAsImmediate; }
|
|
964
964
|
});
|
|
965
965
|
Object.defineProperty(exports, "span", {
|
|
966
966
|
enumerable: true,
|
|
967
|
-
get: function () { return
|
|
967
|
+
get: function () { return chunkFGNDN2FD_cjs.span; }
|
|
968
968
|
});
|
|
969
969
|
Object.defineProperty(exports, "withBaggage", {
|
|
970
970
|
enumerable: true,
|
|
971
|
-
get: function () { return
|
|
971
|
+
get: function () { return chunkFGNDN2FD_cjs.withBaggage; }
|
|
972
972
|
});
|
|
973
973
|
Object.defineProperty(exports, "withNewContext", {
|
|
974
974
|
enumerable: true,
|
|
975
|
-
get: function () { return
|
|
975
|
+
get: function () { return chunkFGNDN2FD_cjs.withNewContext; }
|
|
976
976
|
});
|
|
977
977
|
Object.defineProperty(exports, "withTracing", {
|
|
978
978
|
enumerable: true,
|
|
979
|
-
get: function () { return
|
|
979
|
+
get: function () { return chunkFGNDN2FD_cjs.withTracing; }
|
|
980
980
|
});
|
|
981
981
|
Object.defineProperty(exports, "createDeterministicTraceId", {
|
|
982
982
|
enumerable: true,
|
|
983
|
-
get: function () { return
|
|
983
|
+
get: function () { return chunkOPPXYVEZ_cjs.createDeterministicTraceId; }
|
|
984
984
|
});
|
|
985
985
|
Object.defineProperty(exports, "enrichWithTraceContext", {
|
|
986
986
|
enumerable: true,
|
|
987
|
-
get: function () { return
|
|
987
|
+
get: function () { return chunkOPPXYVEZ_cjs.enrichWithTraceContext; }
|
|
988
988
|
});
|
|
989
989
|
Object.defineProperty(exports, "finalizeSpan", {
|
|
990
990
|
enumerable: true,
|
|
991
|
-
get: function () { return
|
|
991
|
+
get: function () { return chunkOPPXYVEZ_cjs.finalizeSpan; }
|
|
992
992
|
});
|
|
993
993
|
Object.defineProperty(exports, "flattenMetadata", {
|
|
994
994
|
enumerable: true,
|
|
995
|
-
get: function () { return
|
|
995
|
+
get: function () { return chunkOPPXYVEZ_cjs.flattenMetadata; }
|
|
996
996
|
});
|
|
997
997
|
Object.defineProperty(exports, "getActiveContext", {
|
|
998
998
|
enumerable: true,
|
|
999
|
-
get: function () { return
|
|
999
|
+
get: function () { return chunkOPPXYVEZ_cjs.getActiveContext; }
|
|
1000
1000
|
});
|
|
1001
1001
|
Object.defineProperty(exports, "getActiveSpan", {
|
|
1002
1002
|
enumerable: true,
|
|
1003
|
-
get: function () { return
|
|
1003
|
+
get: function () { return chunkOPPXYVEZ_cjs.getActiveSpan; }
|
|
1004
1004
|
});
|
|
1005
1005
|
Object.defineProperty(exports, "getTraceContext", {
|
|
1006
1006
|
enumerable: true,
|
|
1007
|
-
get: function () { return
|
|
1007
|
+
get: function () { return chunkOPPXYVEZ_cjs.getTraceContext; }
|
|
1008
1008
|
});
|
|
1009
1009
|
Object.defineProperty(exports, "getTracer", {
|
|
1010
1010
|
enumerable: true,
|
|
1011
|
-
get: function () { return
|
|
1011
|
+
get: function () { return chunkOPPXYVEZ_cjs.getTracer; }
|
|
1012
1012
|
});
|
|
1013
1013
|
Object.defineProperty(exports, "isTracing", {
|
|
1014
1014
|
enumerable: true,
|
|
1015
|
-
get: function () { return
|
|
1015
|
+
get: function () { return chunkOPPXYVEZ_cjs.isTracing; }
|
|
1016
1016
|
});
|
|
1017
1017
|
Object.defineProperty(exports, "resolveTraceUrl", {
|
|
1018
1018
|
enumerable: true,
|
|
1019
|
-
get: function () { return
|
|
1019
|
+
get: function () { return chunkOPPXYVEZ_cjs.resolveTraceUrl; }
|
|
1020
1020
|
});
|
|
1021
1021
|
Object.defineProperty(exports, "runWithSpan", {
|
|
1022
1022
|
enumerable: true,
|
|
1023
|
-
get: function () { return
|
|
1023
|
+
get: function () { return chunkOPPXYVEZ_cjs.runWithSpan; }
|
|
1024
1024
|
});
|
|
1025
1025
|
Object.defineProperty(exports, "Event", {
|
|
1026
1026
|
enumerable: true,
|
|
1027
|
-
get: function () { return
|
|
1027
|
+
get: function () { return chunkGBFTC7Q7_cjs.Event; }
|
|
1028
1028
|
});
|
|
1029
1029
|
Object.defineProperty(exports, "getEvents", {
|
|
1030
1030
|
enumerable: true,
|
|
1031
|
-
get: function () { return
|
|
1031
|
+
get: function () { return chunkGBFTC7Q7_cjs.getEvents; }
|
|
1032
1032
|
});
|
|
1033
1033
|
Object.defineProperty(exports, "resetEvents", {
|
|
1034
1034
|
enumerable: true,
|
|
1035
|
-
get: function () { return
|
|
1035
|
+
get: function () { return chunkGBFTC7Q7_cjs.resetEvents; }
|
|
1036
1036
|
});
|
|
1037
1037
|
Object.defineProperty(exports, "getOperationContext", {
|
|
1038
1038
|
enumerable: true,
|
|
@@ -1044,87 +1044,91 @@ Object.defineProperty(exports, "runInOperationContext", {
|
|
|
1044
1044
|
});
|
|
1045
1045
|
Object.defineProperty(exports, "CORRELATION_ID_BAGGAGE_KEY", {
|
|
1046
1046
|
enumerable: true,
|
|
1047
|
-
get: function () { return
|
|
1047
|
+
get: function () { return chunkZ7PW3KHL_cjs.CORRELATION_ID_BAGGAGE_KEY; }
|
|
1048
1048
|
});
|
|
1049
1049
|
Object.defineProperty(exports, "createStructuredError", {
|
|
1050
1050
|
enumerable: true,
|
|
1051
|
-
get: function () { return
|
|
1051
|
+
get: function () { return chunkZ7PW3KHL_cjs.createStructuredError; }
|
|
1052
1052
|
});
|
|
1053
1053
|
Object.defineProperty(exports, "defineBaggageSchema", {
|
|
1054
1054
|
enumerable: true,
|
|
1055
|
-
get: function () { return
|
|
1055
|
+
get: function () { return chunkZ7PW3KHL_cjs.defineBaggageSchema; }
|
|
1056
1056
|
});
|
|
1057
1057
|
Object.defineProperty(exports, "flattenToAttributes", {
|
|
1058
1058
|
enumerable: true,
|
|
1059
|
-
get: function () { return
|
|
1059
|
+
get: function () { return chunkZ7PW3KHL_cjs.flattenToAttributes; }
|
|
1060
1060
|
});
|
|
1061
1061
|
Object.defineProperty(exports, "generateCorrelationId", {
|
|
1062
1062
|
enumerable: true,
|
|
1063
|
-
get: function () { return
|
|
1063
|
+
get: function () { return chunkZ7PW3KHL_cjs.generateCorrelationId; }
|
|
1064
1064
|
});
|
|
1065
1065
|
Object.defineProperty(exports, "getCorrelationId", {
|
|
1066
1066
|
enumerable: true,
|
|
1067
|
-
get: function () { return
|
|
1067
|
+
get: function () { return chunkZ7PW3KHL_cjs.getCorrelationId; }
|
|
1068
1068
|
});
|
|
1069
1069
|
Object.defineProperty(exports, "getEventQueue", {
|
|
1070
1070
|
enumerable: true,
|
|
1071
|
-
get: function () { return
|
|
1071
|
+
get: function () { return chunkZ7PW3KHL_cjs.getEventQueue; }
|
|
1072
1072
|
});
|
|
1073
1073
|
Object.defineProperty(exports, "getOrCreateCorrelationId", {
|
|
1074
1074
|
enumerable: true,
|
|
1075
|
-
get: function () { return
|
|
1075
|
+
get: function () { return chunkZ7PW3KHL_cjs.getOrCreateCorrelationId; }
|
|
1076
1076
|
});
|
|
1077
1077
|
Object.defineProperty(exports, "getStructuredErrorAttributes", {
|
|
1078
1078
|
enumerable: true,
|
|
1079
|
-
get: function () { return
|
|
1079
|
+
get: function () { return chunkZ7PW3KHL_cjs.getStructuredErrorAttributes; }
|
|
1080
1080
|
});
|
|
1081
1081
|
Object.defineProperty(exports, "recordStructuredError", {
|
|
1082
1082
|
enumerable: true,
|
|
1083
|
-
get: function () { return
|
|
1083
|
+
get: function () { return chunkZ7PW3KHL_cjs.recordStructuredError; }
|
|
1084
1084
|
});
|
|
1085
1085
|
Object.defineProperty(exports, "runWithCorrelationId", {
|
|
1086
1086
|
enumerable: true,
|
|
1087
|
-
get: function () { return
|
|
1087
|
+
get: function () { return chunkZ7PW3KHL_cjs.runWithCorrelationId; }
|
|
1088
1088
|
});
|
|
1089
1089
|
Object.defineProperty(exports, "setCorrelationId", {
|
|
1090
1090
|
enumerable: true,
|
|
1091
|
-
get: function () { return
|
|
1091
|
+
get: function () { return chunkZ7PW3KHL_cjs.setCorrelationId; }
|
|
1092
1092
|
});
|
|
1093
1093
|
Object.defineProperty(exports, "setCorrelationIdInBaggage", {
|
|
1094
1094
|
enumerable: true,
|
|
1095
|
-
get: function () { return
|
|
1095
|
+
get: function () { return chunkZ7PW3KHL_cjs.setCorrelationIdInBaggage; }
|
|
1096
1096
|
});
|
|
1097
1097
|
Object.defineProperty(exports, "structuredErrorToJSON", {
|
|
1098
1098
|
enumerable: true,
|
|
1099
|
-
get: function () { return
|
|
1099
|
+
get: function () { return chunkZ7PW3KHL_cjs.structuredErrorToJSON; }
|
|
1100
1100
|
});
|
|
1101
1101
|
Object.defineProperty(exports, "toAttributeValue", {
|
|
1102
1102
|
enumerable: true,
|
|
1103
|
-
get: function () { return
|
|
1103
|
+
get: function () { return chunkZ7PW3KHL_cjs.toAttributeValue; }
|
|
1104
1104
|
});
|
|
1105
1105
|
Object.defineProperty(exports, "track", {
|
|
1106
1106
|
enumerable: true,
|
|
1107
|
-
get: function () { return
|
|
1107
|
+
get: function () { return chunkZ7PW3KHL_cjs.track; }
|
|
1108
1108
|
});
|
|
1109
1109
|
Object.defineProperty(exports, "BaggageSpanProcessor", {
|
|
1110
1110
|
enumerable: true,
|
|
1111
|
-
get: function () { return
|
|
1111
|
+
get: function () { return chunkR7QYGZUP_cjs.BaggageSpanProcessor; }
|
|
1112
1112
|
});
|
|
1113
1113
|
Object.defineProperty(exports, "createStringRedactor", {
|
|
1114
1114
|
enumerable: true,
|
|
1115
|
-
get: function () { return
|
|
1115
|
+
get: function () { return chunkR7QYGZUP_cjs.createStringRedactor; }
|
|
1116
1116
|
});
|
|
1117
1117
|
Object.defineProperty(exports, "init", {
|
|
1118
1118
|
enumerable: true,
|
|
1119
|
-
get: function () { return
|
|
1119
|
+
get: function () { return chunkR7QYGZUP_cjs.init; }
|
|
1120
|
+
});
|
|
1121
|
+
Object.defineProperty(exports, "isInitialized", {
|
|
1122
|
+
enumerable: true,
|
|
1123
|
+
get: function () { return chunkR7QYGZUP_cjs.isInitialized; }
|
|
1120
1124
|
});
|
|
1121
1125
|
Object.defineProperty(exports, "isLoggerLocked", {
|
|
1122
1126
|
enumerable: true,
|
|
1123
|
-
get: function () { return
|
|
1127
|
+
get: function () { return chunkR7QYGZUP_cjs.isLoggerLocked; }
|
|
1124
1128
|
});
|
|
1125
1129
|
Object.defineProperty(exports, "lockLogger", {
|
|
1126
1130
|
enumerable: true,
|
|
1127
|
-
get: function () { return
|
|
1131
|
+
get: function () { return chunkR7QYGZUP_cjs.lockLogger; }
|
|
1128
1132
|
});
|
|
1129
1133
|
Object.defineProperty(exports, "FilteringSpanProcessor", {
|
|
1130
1134
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AutotelConfig, i as init, a as isLoggerLocked, l as lockLogger } from './init-
|
|
1
|
+
export { A as AutotelConfig, i as init, a as isInitialized, b as isLoggerLocked, l as lockLogger } from './init-j-A1zI16.cjs';
|
|
2
2
|
import { Span, Context, trace as trace$2 } from '@opentelemetry/api';
|
|
3
3
|
export { AttributeValue, Attributes, Baggage, BaggageEntry, Context, Exception, HrTime, Link, ROOT_CONTEXT, Span, SpanAttributes, SpanContext, SpanKind, Link as SpanLink, SpanStatusCode, TextMapGetter, TextMapSetter, TimeInput, TraceFlags, TraceState, Tracer, TracerProvider, context, trace as otelTrace, propagation } from '@opentelemetry/api';
|
|
4
4
|
import { SpanProcessor, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AutotelConfig, i as init, a as isLoggerLocked, l as lockLogger } from './init-
|
|
1
|
+
export { A as AutotelConfig, i as init, a as isInitialized, b as isLoggerLocked, l as lockLogger } from './init-DIowiiCh.js';
|
|
2
2
|
import { Span, Context, trace as trace$2 } from '@opentelemetry/api';
|
|
3
3
|
export { AttributeValue, Attributes, Baggage, BaggageEntry, Context, Exception, HrTime, Link, ROOT_CONTEXT, Span, SpanAttributes, SpanContext, SpanKind, Link as SpanLink, SpanStatusCode, TextMapGetter, TextMapSetter, TimeInput, TraceFlags, TraceState, Tracer, TracerProvider, context, trace as otelTrace, propagation } from '@opentelemetry/api';
|
|
4
4
|
import { SpanProcessor, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
package/dist/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
export { createDrainPipeline } from './chunk-KFOHQK7X.js';
|
|
2
|
-
export { getCurrentWorkflowContext, isInWorkflow, traceStep, traceWorkflow } from './chunk-
|
|
2
|
+
export { getCurrentWorkflowContext, isInWorkflow, traceStep, traceWorkflow } from './chunk-URHPSJW2.js';
|
|
3
3
|
export { attrs, autoRedactPII, dbClient, httpClient, httpServer, identify, mergeAttrs, mergeServiceResource, request, safeSetAttributes, setDevice, setError, setException, setSession, setUser, validateAttribute } from './chunk-454CH4OV.js';
|
|
4
4
|
export { httpRequestHeaderAttribute, httpResponseHeaderAttribute } from './chunk-7552UTQW.js';
|
|
5
5
|
export { HTTPAttributes, ServiceAttributes, URLAttributes } from './chunk-4A53YIAX.js';
|
|
6
6
|
export { parseError } from './chunk-J7VGRIAJ.js';
|
|
7
|
-
export { traceConsumer, traceProducer } from './chunk-
|
|
7
|
+
export { traceConsumer, traceProducer } from './chunk-DQEHQNQE.js';
|
|
8
8
|
import { emitCorrelatedEvent } from './chunk-KIL5CUN6.js';
|
|
9
9
|
export { BusinessBaggage, createSafeBaggageSchema } from './chunk-4IFSYQVX.js';
|
|
10
10
|
import { resetMetrics } from './chunk-7SAWIN74.js';
|
|
11
11
|
export { Metric, getMetrics, resetMetrics } from './chunk-7SAWIN74.js';
|
|
12
12
|
import './chunk-5ZN622AO.js';
|
|
13
13
|
export { createCounter, createHistogram, createObservableGauge, createUpDownCounter, getMeter } from './chunk-TQ5UWA7S.js';
|
|
14
|
-
export { traceDB, traceHTTP, traceLLM, traceMessaging } from './chunk-
|
|
15
|
-
import { trace as trace$1 } from './chunk-
|
|
16
|
-
export { ctx, instrument, markAsImmediate, span, withBaggage, withNewContext, withTracing } from './chunk-
|
|
17
|
-
export { createDeterministicTraceId, enrichWithTraceContext, finalizeSpan, flattenMetadata, getActiveContext, getActiveSpan, getTraceContext, getTracer, isTracing, resolveTraceUrl, runWithSpan } from './chunk-
|
|
18
|
-
import { resetEvents } from './chunk-
|
|
19
|
-
export { Event, getEvents, resetEvents } from './chunk-
|
|
14
|
+
export { traceDB, traceHTTP, traceLLM, traceMessaging } from './chunk-NVGPMGI4.js';
|
|
15
|
+
import { trace as trace$1 } from './chunk-YWCESU4Y.js';
|
|
16
|
+
export { ctx, instrument, markAsImmediate, span, withBaggage, withNewContext, withTracing } from './chunk-YWCESU4Y.js';
|
|
17
|
+
export { createDeterministicTraceId, enrichWithTraceContext, finalizeSpan, flattenMetadata, getActiveContext, getActiveSpan, getTraceContext, getTracer, isTracing, resolveTraceUrl, runWithSpan } from './chunk-HT5JQKN2.js';
|
|
18
|
+
import { resetEvents } from './chunk-O7JOKRN2.js';
|
|
19
|
+
export { Event, getEvents, resetEvents } from './chunk-O7JOKRN2.js';
|
|
20
20
|
import './chunk-LITNXTTT.js';
|
|
21
21
|
import './chunk-BZHG5IZ4.js';
|
|
22
22
|
export { getOperationContext, runInOperationContext } from './chunk-SEO6NAQT.js';
|
|
23
|
-
import { getEventQueue, resetEventQueue, track, createTraceContext, flattenToAttributes, recordStructuredError, createStructuredError } from './chunk-
|
|
24
|
-
export { CORRELATION_ID_BAGGAGE_KEY, createStructuredError, defineBaggageSchema, flattenToAttributes, generateCorrelationId, getCorrelationId, getEventQueue, getOrCreateCorrelationId, getStructuredErrorAttributes, recordStructuredError, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage, structuredErrorToJSON, toAttributeValue, track } from './chunk-
|
|
25
|
-
import { getLogger, getSdk, _closeEmbeddedDevtools } from './chunk-
|
|
26
|
-
export { BaggageSpanProcessor, createStringRedactor, init, isLoggerLocked, lockLogger } from './chunk-
|
|
27
|
-
import './chunk-
|
|
23
|
+
import { getEventQueue, resetEventQueue, track, createTraceContext, flattenToAttributes, recordStructuredError, createStructuredError } from './chunk-O4JZUCUE.js';
|
|
24
|
+
export { CORRELATION_ID_BAGGAGE_KEY, createStructuredError, defineBaggageSchema, flattenToAttributes, generateCorrelationId, getCorrelationId, getEventQueue, getOrCreateCorrelationId, getStructuredErrorAttributes, recordStructuredError, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage, structuredErrorToJSON, toAttributeValue, track } from './chunk-O4JZUCUE.js';
|
|
25
|
+
import { getLogger, getSdk, _closeEmbeddedDevtools } from './chunk-ALPYR2GC.js';
|
|
26
|
+
export { BaggageSpanProcessor, createStringRedactor, init, isInitialized, isLoggerLocked, lockLogger } from './chunk-ALPYR2GC.js';
|
|
27
|
+
import './chunk-CMHVQR6P.js';
|
|
28
28
|
import './chunk-A4E5AQFK.js';
|
|
29
29
|
export { FilteringSpanProcessor } from './chunk-WGWSHJ2N.js';
|
|
30
30
|
export { NORMALIZER_PATTERNS, NORMALIZER_PRESETS, SpanNameNormalizingProcessor } from './chunk-GYR5K654.js';
|
|
31
31
|
export { AttributeRedactingProcessor, REDACTOR_PATTERNS, REDACTOR_PRESETS, builtinPatterns, createAttributeRedactor, createRedactedSpan, normalizeAttributeRedactorConfig } from './chunk-RUPKBKUF.js';
|
|
32
32
|
import './chunk-6UQRVUN3.js';
|
|
33
33
|
export { formatDuration } from './chunk-3QXBFGKP.js';
|
|
34
|
-
import './chunk-
|
|
34
|
+
import './chunk-Q4EULJQY.js';
|
|
35
35
|
export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, NeverSampler, RandomSampler, UserIdSampler, createLinkFromHeaders, extractLinksFromBatch, resolveSamplingPreset, samplingPresets } from './chunk-DPSA4QLA.js';
|
|
36
36
|
import './chunk-55ER2KD5.js';
|
|
37
37
|
import './chunk-J5QENANM.js';
|
|
@@ -1159,5 +1159,9 @@ declare function isLoggerLocked(): boolean;
|
|
|
1159
1159
|
* ```
|
|
1160
1160
|
*/
|
|
1161
1161
|
declare function init(cfg: AutotelConfig): void;
|
|
1162
|
+
/**
|
|
1163
|
+
* Check if autotel has been initialized
|
|
1164
|
+
*/
|
|
1165
|
+
declare function isInitialized(): boolean;
|
|
1162
1166
|
|
|
1163
|
-
export { type AutotelConfig as A,
|
|
1167
|
+
export { type AutotelConfig as A, isInitialized as a, isLoggerLocked as b, init as i, lockLogger as l };
|
|
@@ -1159,5 +1159,9 @@ declare function isLoggerLocked(): boolean;
|
|
|
1159
1159
|
* ```
|
|
1160
1160
|
*/
|
|
1161
1161
|
declare function init(cfg: AutotelConfig): void;
|
|
1162
|
+
/**
|
|
1163
|
+
* Check if autotel has been initialized
|
|
1164
|
+
*/
|
|
1165
|
+
declare function isInitialized(): boolean;
|
|
1162
1166
|
|
|
1163
|
-
export { type AutotelConfig as A,
|
|
1167
|
+
export { type AutotelConfig as A, isInitialized as a, isLoggerLocked as b, init as i, lockLogger as l };
|