autotel 7.7.0 → 7.8.0
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/analysis.cjs +0 -1
- package/dist/{attribute-redacting-processor-CvBE0z1p.d.ts → attribute-redacting-processor-rkV_WL-k.d.ts} +2 -2
- package/dist/attribute-redacting-processor.cjs +1 -1
- package/dist/attribute-redacting-processor.d.ts +1 -1
- package/dist/{attributes-De9Fx0b4.js → attributes-CuGx6cOI.js} +21 -11
- package/dist/{attributes-DkptT2Ck.cjs → attributes-Ii3jDPsW.cjs} +23 -13
- package/dist/attributes.cjs +1 -1
- package/dist/attributes.d.ts +1 -1
- package/dist/attributes.js +1 -1
- package/dist/auto.cjs +2 -2
- package/dist/auto.js +1 -1
- package/dist/business-baggage.cjs +1 -1
- package/dist/{canonical-log-line-processor-Bvgb1lE4.cjs → canonical-log-line-processor-BU03jJeA.cjs} +1 -1
- package/dist/{canonical-log-line-processor-Yq4cXcD5.d.ts → canonical-log-line-processor-Bwrt_L4c.d.ts} +1 -1
- package/dist/{correlated-events-9RRdfyWR.cjs → correlated-events-DE_4A3oD.cjs} +1 -1
- package/dist/correlation-id.cjs +1 -1
- package/dist/correlation-id.js +1 -1
- package/dist/db.cjs +2 -2
- package/dist/db.js +1 -1
- package/dist/decorators.cjs +2 -2
- package/dist/decorators.d.cts +1 -1
- package/dist/decorators.d.ts +1 -1
- package/dist/decorators.js +1 -1
- package/dist/diagnostics.cjs +3 -3
- package/dist/diagnostics.js +1 -1
- package/dist/drain-pipeline.cjs +0 -1
- package/dist/enrichers.cjs +0 -1
- package/dist/event-testing.cjs +0 -1
- package/dist/event.cjs +1 -1
- package/dist/event.js +1 -1
- package/dist/evidence.cjs +0 -1
- package/dist/exception-fingerprint.cjs +1 -1
- package/dist/{filtering-span-processor-BpDagWNa.d.ts → filtering-span-processor-vkewzbqB.d.ts} +2 -2
- package/dist/filtering-span-processor.cjs +0 -1
- package/dist/filtering-span-processor.d.ts +1 -1
- package/dist/{functional-Cnga_Lnv.js → functional-CC2BFGAO.js} +9 -8
- package/dist/{functional-C4mjgtJb.d.cts → functional-DPZTpGh6.d.cts} +2 -2
- package/dist/{functional-DN_ztd9C.d.ts → functional-SeRUabkE.d.ts} +2 -2
- package/dist/{functional-CJI0HCVJ.cjs → functional-u5Qwjray.cjs} +5 -4
- package/dist/functional.cjs +1 -1
- package/dist/functional.d.cts +1 -1
- package/dist/functional.d.ts +1 -1
- package/dist/functional.js +1 -1
- package/dist/http.cjs +2 -2
- package/dist/http.js +1 -1
- package/dist/{index-o_6YjZhV.d.ts → index-B9aRLp6c.d.ts} +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/index.js +3 -3
- package/dist/{init-BYXDCfRL.cjs → init-21HWbm7_.cjs} +194 -39
- package/dist/{init-Dyq6WtsO.js → init-8SISAGdE.js} +190 -35
- package/dist/{init-WwjD-kQu.d.cts → init-COfMwKbc.d.cts} +38 -10
- package/dist/{init-CKSMbJUG.d.ts → init-CnoRlJqS.d.ts} +43 -15
- package/dist/instrumentation.cjs +9 -8
- package/dist/instrumentation.js +8 -7
- package/dist/{logger-CSdZkxbh.cjs → logger-DLjHQAus.cjs} +1 -1
- package/dist/logger.cjs +1 -1
- package/dist/messaging-adapters.cjs +1 -1
- package/dist/messaging-testing.cjs +0 -1
- package/dist/messaging.cjs +8 -7
- package/dist/messaging.js +5 -4
- package/dist/metric-testing.cjs +0 -1
- package/dist/{node-require-B_IVapV3.cjs → node-require-BPsB09eC.cjs} +2 -2
- package/dist/parse-error.cjs +1 -1
- package/dist/{policy-C4QcZnqv.d.ts → policy-DNw_0qUq.d.ts} +1 -1
- package/dist/policy.cjs +0 -0
- package/dist/policy.d.ts +1 -1
- package/dist/processors.cjs +1 -1
- package/dist/processors.d.ts +1 -1
- package/dist/register.cjs +1 -1
- package/dist/{registry-DIoklBz5.cjs → registry-B3ZJmUtU.cjs} +0 -1
- package/dist/{rolldown-runtime-C_NdSu1c.cjs → rolldown-runtime-C24Yb2bl.cjs} +1 -2
- package/dist/{sampling-DBng4Foa.d.ts → sampling-CZi7OM9u.d.ts} +13 -13
- package/dist/{sampling-Er217Mge.d.cts → sampling-DENUjT_8.d.cts} +13 -13
- package/dist/sampling.cjs +1 -1
- package/dist/sampling.d.cts +1 -1
- package/dist/sampling.d.ts +1 -1
- package/dist/sampling.js +1 -1
- package/dist/security-schema.cjs +0 -1
- package/dist/semantic-conventions.cjs +1 -1
- package/dist/semantic-helpers.cjs +3 -3
- package/dist/semantic-helpers.js +1 -1
- package/dist/{span-name-normalizer-CN1-8C76.d.ts → span-name-normalizer-DHcg1bSP.d.ts} +2 -2
- package/dist/span-name-normalizer.cjs +0 -1
- package/dist/span-name-normalizer.d.ts +1 -1
- package/dist/{stable-hash-C9F6xjzx.cjs → stable-hash-sLi1o4jj.cjs} +2 -2
- package/dist/{structured-error-BAXhglRE.cjs → structured-error-DynjWTTu.cjs} +1 -1
- package/dist/tail-sampling-processor.cjs +1 -1
- package/dist/tail-sampling-processor.d.ts +2 -2
- package/dist/tail-sampling-processor.js +1 -1
- package/dist/test-span-collector.cjs +1 -1
- package/dist/testing.cjs +16 -2
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +15 -1
- package/dist/{trace-factory-validation-Dc8epn87.cjs → trace-factory-validation-CHU1WcjK.cjs} +0 -1
- package/dist/trace-helpers.cjs +2 -2
- package/dist/tracer-provider.cjs +1 -1
- package/dist/validate.cjs +3 -3
- package/dist/validation-attributes.cjs +0 -1
- package/dist/{values-tm4bi0FF.cjs → values-AxGpgYBA.cjs} +0 -1
- package/dist/webhook.cjs +16 -13
- package/dist/webhook.js +14 -11
- package/dist/workflow-distributed.cjs +4 -6
- package/dist/workflow-distributed.js +2 -4
- package/dist/workflow.cjs +7 -6
- package/dist/workflow.js +3 -2
- package/dist/yaml-config.cjs +1 -1
- package/dist/yaml-config.d.cts +2 -2
- package/dist/yaml-config.d.ts +2 -2
- package/dist/yaml-config.js +1 -1
- package/package.json +420 -159
package/dist/webhook.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as recordStructuredError } from "./structured-error-Y9y-1Pae.js";
|
|
2
|
-
import { l as withTracing } from "./functional-
|
|
2
|
+
import { l as withTracing } from "./functional-CC2BFGAO.js";
|
|
3
3
|
import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
|
|
4
4
|
import { SpanKind, trace } from "@opentelemetry/api";
|
|
5
5
|
|
|
@@ -149,7 +149,7 @@ var InMemoryTraceContextStore = class {
|
|
|
149
149
|
* ```
|
|
150
150
|
*/
|
|
151
151
|
function createParkingLot(config) {
|
|
152
|
-
const { store, defaultTTLMs =
|
|
152
|
+
const { store, defaultTTLMs = 864e5, keyPrefix = "parkingLot:", autoDeleteOnRetrieve = true, onMiss } = config;
|
|
153
153
|
/**
|
|
154
154
|
* Get current span context from active context
|
|
155
155
|
*/
|
|
@@ -178,15 +178,18 @@ function createParkingLot(config) {
|
|
|
178
178
|
};
|
|
179
179
|
await store.save(fullKey, storedContext);
|
|
180
180
|
const activeSpan = trace.getActiveSpan();
|
|
181
|
-
if (activeSpan)
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
181
|
+
if (activeSpan) {
|
|
182
|
+
const parkAttrs = {
|
|
183
|
+
"parking_lot.correlation_key": correlationKey,
|
|
184
|
+
"parking_lot.ttl_ms": defaultTTLMs,
|
|
185
|
+
...metadata && Object.fromEntries(Object.entries(metadata).map(([k, v]) => [`parking_lot.metadata.${k}`, v]))
|
|
186
|
+
};
|
|
187
|
+
emitCorrelatedEvent({
|
|
188
|
+
setAttribute: (k, v) => activeSpan.setAttribute(k, v),
|
|
189
|
+
setAttributes: (a) => activeSpan.setAttributes(a),
|
|
190
|
+
addEvent: (n, a) => activeSpan.addEvent(n, a)
|
|
191
|
+
}, "trace_context_parked", parkAttrs);
|
|
192
|
+
}
|
|
190
193
|
return correlationKey;
|
|
191
194
|
},
|
|
192
195
|
async retrieve(correlationKey) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
3
|
-
const require_functional = require('./functional-
|
|
4
|
-
const require_correlated_events = require('./correlated-events-
|
|
2
|
+
const require_values = require('./values-AxGpgYBA.cjs');
|
|
3
|
+
const require_functional = require('./functional-u5Qwjray.cjs');
|
|
4
|
+
const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
|
|
5
5
|
const require_business_baggage = require('./business-baggage.cjs');
|
|
6
6
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
7
7
|
|
|
@@ -507,9 +507,7 @@ function parseWorkflowFromBaggage(baggageHeader) {
|
|
|
507
507
|
case "workflow.initiatedBy":
|
|
508
508
|
values.initiatedBy = decodedValue;
|
|
509
509
|
break;
|
|
510
|
-
case "workflow.startedAt":
|
|
511
|
-
values.startedAt = decodedValue;
|
|
512
|
-
break;
|
|
510
|
+
case "workflow.startedAt": values.startedAt = decodedValue;
|
|
513
511
|
}
|
|
514
512
|
}
|
|
515
513
|
return Object.keys(values).length > 0 ? values : null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as isFunction, x as toError } from "./values-xBtdXtjA.js";
|
|
2
|
-
import { l as withTracing } from "./functional-
|
|
2
|
+
import { l as withTracing } from "./functional-CC2BFGAO.js";
|
|
3
3
|
import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
|
|
4
4
|
import { createSafeBaggageSchema } from "./business-baggage.js";
|
|
5
5
|
import { SpanKind, context, propagation } from "@opentelemetry/api";
|
|
@@ -506,9 +506,7 @@ function parseWorkflowFromBaggage(baggageHeader) {
|
|
|
506
506
|
case "workflow.initiatedBy":
|
|
507
507
|
values.initiatedBy = decodedValue;
|
|
508
508
|
break;
|
|
509
|
-
case "workflow.startedAt":
|
|
510
|
-
values.startedAt = decodedValue;
|
|
511
|
-
break;
|
|
509
|
+
case "workflow.startedAt": values.startedAt = decodedValue;
|
|
512
510
|
}
|
|
513
511
|
}
|
|
514
512
|
return Object.keys(values).length > 0 ? values : null;
|
package/dist/workflow.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_rolldown_runtime = require('./rolldown-runtime-
|
|
3
|
-
const require_values = require('./values-
|
|
4
|
-
const require_functional = require('./functional-
|
|
2
|
+
const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
|
|
3
|
+
const require_values = require('./values-AxGpgYBA.cjs');
|
|
4
|
+
const require_functional = require('./functional-u5Qwjray.cjs');
|
|
5
5
|
const require_trace_helpers = require('./trace-helpers.cjs');
|
|
6
|
-
const require_correlated_events = require('./correlated-events-
|
|
7
|
-
const require_trace_factory_validation = require('./trace-factory-validation-
|
|
6
|
+
const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
|
|
7
|
+
const require_trace_factory_validation = require('./trace-factory-validation-CHU1WcjK.cjs');
|
|
8
8
|
let node_async_hooks = require("node:async_hooks");
|
|
9
9
|
node_async_hooks = require_rolldown_runtime.__toESM(node_async_hooks, 1);
|
|
10
10
|
|
|
@@ -159,7 +159,8 @@ function traceStep(config) {
|
|
|
159
159
|
assertNamedConfig("traceStep", config);
|
|
160
160
|
return ((handler) => {
|
|
161
161
|
if (!require_values.isFunction(handler)) throw new TypeError("traceStep(config)(handler): handler must be a function");
|
|
162
|
-
|
|
162
|
+
const spanName = `step.${config.name}`;
|
|
163
|
+
return require_functional.withTracing({ name: spanName })((baseCtx) => {
|
|
163
164
|
return async (...args) => {
|
|
164
165
|
const workflowCtx = workflowContextStorage.getStore() ?? null;
|
|
165
166
|
const ctx = createStepContext(baseCtx, config, workflowCtx);
|
package/dist/workflow.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as toAttributeValue, g as nonEmptyString, h as isFunction, l as asString, s as asRecord, x as toError } from "./values-xBtdXtjA.js";
|
|
2
|
-
import { l as withTracing } from "./functional-
|
|
2
|
+
import { l as withTracing } from "./functional-CC2BFGAO.js";
|
|
3
3
|
import { getActiveSpan } from "./trace-helpers.js";
|
|
4
4
|
import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
|
|
5
5
|
import { t as assertTraceFactory } from "./trace-factory-validation-BjVAinz6.js";
|
|
@@ -156,7 +156,8 @@ function traceStep(config) {
|
|
|
156
156
|
assertNamedConfig("traceStep", config);
|
|
157
157
|
return ((handler) => {
|
|
158
158
|
if (!isFunction(handler)) throw new TypeError("traceStep(config)(handler): handler must be a function");
|
|
159
|
-
|
|
159
|
+
const spanName = `step.${config.name}`;
|
|
160
|
+
return withTracing({ name: spanName })((baseCtx) => {
|
|
160
161
|
return async (...args) => {
|
|
161
162
|
const workflowCtx = workflowContextStorage.getStore() ?? null;
|
|
162
163
|
const ctx = createStepContext(baseCtx, config, workflowCtx);
|
package/dist/yaml-config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_init = require('./init-
|
|
2
|
+
const require_init = require('./init-21HWbm7_.cjs');
|
|
3
3
|
|
|
4
4
|
exports.hasYamlConfig = require_init.hasYamlConfig;
|
|
5
5
|
exports.loadYamlConfig = require_init.loadYamlConfig;
|
package/dist/yaml-config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as SamplingPreset } from "./sampling-
|
|
2
|
-
import { a as AutotelConfig, o as OtlpSignal } from "./init-
|
|
1
|
+
import { g as SamplingPreset } from "./sampling-DENUjT_8.cjs";
|
|
2
|
+
import { a as AutotelConfig, o as OtlpSignal } from "./init-COfMwKbc.cjs";
|
|
3
3
|
//#region src/yaml-config.d.ts
|
|
4
4
|
/** A value as a YAML document carries it: scalars, sequences, mappings. */
|
|
5
5
|
type YamlValue = string | number | boolean | null | YamlValue[] | YamlMapping;
|
package/dist/yaml-config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as SamplingPreset } from "./sampling-
|
|
2
|
-
import { a as AutotelConfig, o as OtlpSignal } from "./init-
|
|
1
|
+
import { g as SamplingPreset } from "./sampling-CZi7OM9u.js";
|
|
2
|
+
import { a as AutotelConfig, o as OtlpSignal } from "./init-CnoRlJqS.js";
|
|
3
3
|
//#region src/yaml-config.d.ts
|
|
4
4
|
/** A value as a YAML document carries it: scalars, sequences, mappings. */
|
|
5
5
|
type YamlValue = string | number | boolean | null | YamlValue[] | YamlMapping;
|
package/dist/yaml-config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-
|
|
1
|
+
import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-8SISAGdE.js";
|
|
2
2
|
|
|
3
3
|
export { hasYamlConfig, loadYamlConfig, loadYamlConfigFromFile };
|