autotel 7.6.0 → 7.6.2
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/NOTICE +9 -0
- package/dist/attribute-redacting-processor.cjs +1 -1
- package/dist/attribute-redacting-processor.js +1 -1
- package/dist/{attributes-DQQl-D6Q.js → attributes-De9Fx0b4.js} +1 -1
- package/dist/{attributes-DnfoMlA9.cjs → attributes-DkptT2Ck.cjs} +1 -1
- package/dist/attributes.cjs +1 -1
- package/dist/attributes.js +1 -1
- package/dist/auto.cjs +1 -1
- package/dist/auto.js +1 -1
- package/dist/business-baggage.cjs +1 -1
- package/dist/business-baggage.js +1 -1
- package/dist/{canonical-log-line-processor-CBv-OCp4.js → canonical-log-line-processor-BQ6NeZAk.js} +1 -1
- package/dist/{canonical-log-line-processor-B-tzezhk.cjs → canonical-log-line-processor-Bvgb1lE4.cjs} +1 -1
- package/dist/{correlated-events-CcuknWnU.cjs → correlated-events-9RRdfyWR.cjs} +1 -1
- package/dist/{correlated-events-DwMMbItg.js → correlated-events-BfpH5uS-.js} +1 -1
- package/dist/correlation-id.cjs +1 -1
- package/dist/correlation-id.js +1 -1
- package/dist/db.cjs +1 -1
- package/dist/db.js +1 -1
- package/dist/decorators.cjs +2 -2
- package/dist/decorators.js +2 -2
- package/dist/diagnostics.cjs +2 -2
- package/dist/diagnostics.js +2 -2
- package/dist/event.cjs +1 -1
- package/dist/event.js +1 -1
- package/dist/exception-fingerprint.cjs +1 -1
- package/dist/exception-fingerprint.js +1 -1
- package/dist/{functional-BXgTFVTA.js → functional-DzIFi7ml.js} +2 -2
- package/dist/{functional-zasLBPyX.cjs → functional-uOagkiCk.cjs} +2 -2
- package/dist/functional.cjs +1 -1
- package/dist/functional.js +1 -1
- package/dist/http.cjs +2 -2
- package/dist/http.js +2 -2
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/{init-DDCgmfa4.d.ts → init-BHV2gWsV.d.ts} +1 -1
- package/dist/{init-Bst_BhiS.js → init-Dwj1goyE.js} +4 -4
- package/dist/{init-BU7qa-Ii.d.cts → init-DxmeJ3d0.d.cts} +1 -1
- package/dist/{init-OSYC19sK.cjs → init-zGVUHByM.cjs} +4 -4
- package/dist/instrumentation.cjs +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{logger-DdPp__xW.js → logger-B2VPcBgZ.js} +1 -1
- package/dist/{logger-Sm66cjKl.cjs → logger-CSdZkxbh.cjs} +1 -1
- package/dist/logger.cjs +1 -1
- package/dist/logger.js +1 -1
- package/dist/messaging-adapters.cjs +1 -1
- package/dist/messaging-adapters.js +1 -1
- package/dist/messaging.cjs +4 -4
- package/dist/messaging.js +4 -4
- package/dist/{node-require-EifOMikz.cjs → node-require-B_IVapV3.cjs} +1 -1
- package/dist/{node-require-DSPjaw_l.js → node-require-CkK_xzL-.js} +1 -1
- package/dist/parse-error.cjs +1 -1
- package/dist/parse-error.js +1 -1
- package/dist/{policy-CbpP4tFH.d.cts → policy-C4QcZnqv.d.cts} +2 -4
- package/dist/{policy-CbpP4tFH.d.ts → policy-C4QcZnqv.d.ts} +2 -4
- package/dist/policy.cjs +0 -0
- package/dist/policy.d.cts +1 -1
- package/dist/policy.d.ts +1 -1
- package/dist/policy.js +0 -0
- package/dist/processors.cjs +1 -1
- package/dist/processors.js +1 -1
- package/dist/sampling.cjs +1 -1
- package/dist/sampling.js +1 -1
- package/dist/semantic-helpers.cjs +2 -2
- package/dist/semantic-helpers.js +2 -2
- package/dist/{stable-hash-BkoAYVks.js → stable-hash-AOUgw1DW.js} +1 -1
- package/dist/{stable-hash-C0pOegH_.cjs → stable-hash-C9F6xjzx.cjs} +1 -1
- package/dist/{structured-error--_wXpd_C.cjs → structured-error-BI9PFKZr.cjs} +5 -4
- package/dist/{structured-error-YIuka-FE.js → structured-error-XpBdwnmv.js} +5 -4
- package/dist/tail-sampling-processor.cjs +1 -1
- package/dist/tail-sampling-processor.js +1 -1
- package/dist/test-span-collector.cjs +1 -1
- package/dist/test-span-collector.js +1 -1
- package/dist/testing.cjs +1 -1
- package/dist/testing.js +1 -1
- package/dist/trace-helpers.cjs +6 -6
- package/dist/trace-helpers.js +6 -6
- package/dist/tracer-provider.cjs +1 -1
- package/dist/tracer-provider.js +1 -1
- package/dist/validate.cjs +3 -3
- package/dist/validate.js +3 -3
- package/dist/{values-DApyq53y.cjs → values-tm4bi0FF.cjs} +12 -2
- package/dist/{values-BenyvWKz.js → values-xBtdXtjA.js} +11 -1
- package/dist/webhook.cjs +3 -3
- package/dist/webhook.js +3 -3
- package/dist/workflow-distributed.cjs +3 -3
- package/dist/workflow-distributed.js +3 -3
- package/dist/workflow.cjs +3 -3
- package/dist/workflow.js +3 -3
- package/dist/yaml-config.cjs +1 -1
- package/dist/yaml-config.d.cts +1 -1
- package/dist/yaml-config.d.ts +1 -1
- package/dist/yaml-config.js +1 -1
- package/package.json +4 -2
package/dist/policy.cjs
CHANGED
|
Binary file
|
package/dist/policy.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as watchPolicyFile, a as PolicyLogRecordProcessor, c as PolicyMatcher, d as getPolicies, f as hasLogPolicies, g as unsupportedReason, h as setPolicies, i as PolicyField, l as PolicyTraceTarget, m as policySpanFilter, n as MAX_MATCH_LENGTH, o as PolicyLogTarget, p as loadPolicies, r as Policy, s as PolicyLogTransform, t as AttributePath, u as clearPolicies } from "./policy-
|
|
1
|
+
import { _ as watchPolicyFile, a as PolicyLogRecordProcessor, c as PolicyMatcher, d as getPolicies, f as hasLogPolicies, g as unsupportedReason, h as setPolicies, i as PolicyField, l as PolicyTraceTarget, m as policySpanFilter, n as MAX_MATCH_LENGTH, o as PolicyLogTarget, p as loadPolicies, r as Policy, s as PolicyLogTransform, t as AttributePath, u as clearPolicies } from "./policy-C4QcZnqv.cjs";
|
|
2
2
|
export { AttributePath, MAX_MATCH_LENGTH, Policy, PolicyField, PolicyLogRecordProcessor, PolicyLogTarget, PolicyLogTransform, PolicyMatcher, PolicyTraceTarget, clearPolicies, getPolicies, hasLogPolicies, loadPolicies, policySpanFilter, setPolicies, unsupportedReason, watchPolicyFile };
|
package/dist/policy.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as watchPolicyFile, a as PolicyLogRecordProcessor, c as PolicyMatcher, d as getPolicies, f as hasLogPolicies, g as unsupportedReason, h as setPolicies, i as PolicyField, l as PolicyTraceTarget, m as policySpanFilter, n as MAX_MATCH_LENGTH, o as PolicyLogTarget, p as loadPolicies, r as Policy, s as PolicyLogTransform, t as AttributePath, u as clearPolicies } from "./policy-
|
|
1
|
+
import { _ as watchPolicyFile, a as PolicyLogRecordProcessor, c as PolicyMatcher, d as getPolicies, f as hasLogPolicies, g as unsupportedReason, h as setPolicies, i as PolicyField, l as PolicyTraceTarget, m as policySpanFilter, n as MAX_MATCH_LENGTH, o as PolicyLogTarget, p as loadPolicies, r as Policy, s as PolicyLogTransform, t as AttributePath, u as clearPolicies } from "./policy-C4QcZnqv.js";
|
|
2
2
|
export { AttributePath, MAX_MATCH_LENGTH, Policy, PolicyField, PolicyLogRecordProcessor, PolicyLogTarget, PolicyLogTransform, PolicyMatcher, PolicyTraceTarget, clearPolicies, getPolicies, hasLogPolicies, loadPolicies, policySpanFilter, setPolicies, unsupportedReason, watchPolicyFile };
|
package/dist/policy.js
CHANGED
|
Binary file
|
package/dist/processors.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_canonical_log_line_processor = require('./canonical-log-line-processor-
|
|
2
|
+
const require_canonical_log_line_processor = require('./canonical-log-line-processor-Bvgb1lE4.cjs');
|
|
3
3
|
let _opentelemetry_sdk_trace_base = require("@opentelemetry/sdk-trace-base");
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, 'BatchSpanProcessor', {
|
package/dist/processors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CanonicalLogLineProcessor } from "./canonical-log-line-processor-
|
|
1
|
+
import { t as CanonicalLogLineProcessor } from "./canonical-log-line-processor-BQ6NeZAk.js";
|
|
2
2
|
import { BatchSpanProcessor, SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
3
3
|
|
|
4
4
|
export { BatchSpanProcessor, CanonicalLogLineProcessor, SimpleSpanProcessor };
|
package/dist/sampling.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-zGVUHByM.cjs');
|
|
3
3
|
|
|
4
4
|
exports.AUTOTEL_DEBUG_BAGGAGE_KEY = require_init.AUTOTEL_DEBUG_BAGGAGE_KEY;
|
|
5
5
|
exports.AUTOTEL_SAMPLING_RATE = require_init.AUTOTEL_SAMPLING_RATE;
|
package/dist/sampling.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as FeatureFlagSampler, B as markForceKept, C as AUTOTEL_SAMPLING_RATE, D as AlwaysSampler, E as AdaptiveSampler, F as createLinkFromHeaders, H as samplingPresets, I as debugCaptureRequested, L as extractLinksFromBatch, M as NeverSampler, N as RandomSampler, O as CompositeSampler, P as UserIdSampler, R as hashUnitInterval, S as AUTOTEL_DEBUG_BAGGAGE_KEY, T as AUTOTEL_SAMPLING_TAIL_KEEP, V as resolveSamplingPreset, j as KeyTargetRateSampler, k as DeterministicSampler, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, z as isForceKept } from "./init-
|
|
1
|
+
import { A as FeatureFlagSampler, B as markForceKept, C as AUTOTEL_SAMPLING_RATE, D as AlwaysSampler, E as AdaptiveSampler, F as createLinkFromHeaders, H as samplingPresets, I as debugCaptureRequested, L as extractLinksFromBatch, M as NeverSampler, N as RandomSampler, O as CompositeSampler, P as UserIdSampler, R as hashUnitInterval, S as AUTOTEL_DEBUG_BAGGAGE_KEY, T as AUTOTEL_SAMPLING_TAIL_KEEP, V as resolveSamplingPreset, j as KeyTargetRateSampler, k as DeterministicSampler, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, z as isForceKept } from "./init-Dwj1goyE.js";
|
|
2
2
|
|
|
3
3
|
export { AUTOTEL_DEBUG_BAGGAGE_KEY, AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, CompositeSampler, DeterministicSampler, FeatureFlagSampler, KeyTargetRateSampler, NeverSampler, RandomSampler, UserIdSampler, createLinkFromHeaders, debugCaptureRequested, extractLinksFromBatch, hashUnitInterval, isForceKept, markForceKept, resolveSamplingPreset, samplingPresets };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
3
|
-
const require_functional = require('./functional-
|
|
2
|
+
const require_values = require('./values-tm4bi0FF.cjs');
|
|
3
|
+
const require_functional = require('./functional-uOagkiCk.cjs');
|
|
4
4
|
const require_trace_factory_validation = require('./trace-factory-validation-Dc8epn87.cjs');
|
|
5
5
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
6
6
|
|
package/dist/semantic-helpers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as toAttributeValue, g as nonEmptyString, s as asRecord } from "./values-
|
|
2
|
-
import { c as withTracing } from "./functional-
|
|
1
|
+
import { b as toAttributeValue, g as nonEmptyString, s as asRecord } from "./values-xBtdXtjA.js";
|
|
2
|
+
import { c as withTracing } from "./functional-DzIFi7ml.js";
|
|
3
3
|
import { t as assertTraceFactory } from "./trace-factory-validation-BjVAinz6.js";
|
|
4
4
|
import { SpanKind } from "@opentelemetry/api";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
|
|
2
|
-
const require_values = require('./values-
|
|
2
|
+
const require_values = require('./values-tm4bi0FF.cjs');
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
node_crypto = require_rolldown_runtime.__toESM(node_crypto, 1);
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_values = require('./values-
|
|
1
|
+
const require_values = require('./values-tm4bi0FF.cjs');
|
|
2
2
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
3
3
|
|
|
4
4
|
//#region src/flatten-attributes.ts
|
|
@@ -12,6 +12,7 @@ function toAttributeValue(value) {
|
|
|
12
12
|
const scalar = require_values.asString(value) ?? require_values.asNumber(value) ?? require_values.asBoolean(value);
|
|
13
13
|
if (scalar !== void 0) return scalar;
|
|
14
14
|
if (Array.isArray(value)) return toAttributeArray(value);
|
|
15
|
+
if (value instanceof Set) return toAttributeArray([...value]);
|
|
15
16
|
if (value instanceof Date) return value.toISOString();
|
|
16
17
|
if (value instanceof Error) return value.message;
|
|
17
18
|
}
|
|
@@ -45,13 +46,13 @@ function flattenToAttributes(fields, prefix = "") {
|
|
|
45
46
|
out[nextKey] = attr;
|
|
46
47
|
continue;
|
|
47
48
|
}
|
|
48
|
-
const nested = require_values.
|
|
49
|
+
const nested = require_values.asPlainRecordOrMap(value);
|
|
49
50
|
if (nested !== void 0) {
|
|
50
|
-
if (seen.has(
|
|
51
|
+
if (seen.has(value)) {
|
|
51
52
|
out[nextKey] = "<circular-reference>";
|
|
52
53
|
continue;
|
|
53
54
|
}
|
|
54
|
-
seen.add(
|
|
55
|
+
seen.add(value);
|
|
55
56
|
flatten(nested, nextKey);
|
|
56
57
|
continue;
|
|
57
58
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as isFunction, i as asNumber, l as asString, o as
|
|
1
|
+
import { h as isFunction, i as asNumber, l as asString, o as asPlainRecordOrMap, t as asBoolean } from "./values-xBtdXtjA.js";
|
|
2
2
|
import { SpanStatusCode } from "@opentelemetry/api";
|
|
3
3
|
|
|
4
4
|
//#region src/flatten-attributes.ts
|
|
@@ -12,6 +12,7 @@ function toAttributeValue(value) {
|
|
|
12
12
|
const scalar = asString(value) ?? asNumber(value) ?? asBoolean(value);
|
|
13
13
|
if (scalar !== void 0) return scalar;
|
|
14
14
|
if (Array.isArray(value)) return toAttributeArray(value);
|
|
15
|
+
if (value instanceof Set) return toAttributeArray([...value]);
|
|
15
16
|
if (value instanceof Date) return value.toISOString();
|
|
16
17
|
if (value instanceof Error) return value.message;
|
|
17
18
|
}
|
|
@@ -45,13 +46,13 @@ function flattenToAttributes(fields, prefix = "") {
|
|
|
45
46
|
out[nextKey] = attr;
|
|
46
47
|
continue;
|
|
47
48
|
}
|
|
48
|
-
const nested =
|
|
49
|
+
const nested = asPlainRecordOrMap(value);
|
|
49
50
|
if (nested !== void 0) {
|
|
50
|
-
if (seen.has(
|
|
51
|
+
if (seen.has(value)) {
|
|
51
52
|
out[nextKey] = "<circular-reference>";
|
|
52
53
|
continue;
|
|
53
54
|
}
|
|
54
|
-
seen.add(
|
|
55
|
+
seen.add(value);
|
|
55
56
|
flatten(nested, nextKey);
|
|
56
57
|
continue;
|
|
57
58
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
2
|
+
const require_values = require('./values-tm4bi0FF.cjs');
|
|
3
3
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
4
4
|
|
|
5
5
|
//#region src/test-span-collector.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as asNumberArray, c as asScalar, n as asBooleanArray, u as asStringArray } from "./values-
|
|
1
|
+
import { a as asNumberArray, c as asScalar, n as asBooleanArray, u as asStringArray } from "./values-xBtdXtjA.js";
|
|
2
2
|
import { SpanStatusCode } from "@opentelemetry/api";
|
|
3
3
|
|
|
4
4
|
//#region src/test-span-collector.ts
|
package/dist/testing.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
|
|
3
|
-
const require_values = require('./values-
|
|
3
|
+
const require_values = require('./values-tm4bi0FF.cjs');
|
|
4
4
|
const require_config = require('./config.cjs');
|
|
5
5
|
const require_event_testing = require('./event-testing.cjs');
|
|
6
6
|
const require_test_span_collector = require('./test-span-collector.cjs');
|
package/dist/testing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as asString, s as asRecord } from "./values-
|
|
1
|
+
import { l as asString, s as asRecord } from "./values-xBtdXtjA.js";
|
|
2
2
|
import { configure } from "./config.js";
|
|
3
3
|
import { assertEventTracked, assertOutcomeTracked, createEventCollector } from "./event-testing.js";
|
|
4
4
|
import { TestSpanCollector, serializeSpan } from "./test-span-collector.js";
|
package/dist/trace-helpers.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
3
|
-
const require_node_require = require('./node-require-
|
|
2
|
+
const require_values = require('./values-tm4bi0FF.cjs');
|
|
3
|
+
const require_node_require = require('./node-require-B_IVapV3.cjs');
|
|
4
4
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
5
5
|
|
|
6
6
|
//#region src/trace-helpers.ts
|
|
@@ -603,18 +603,18 @@ function flattenMetadata(metadata, prefix = "metadata") {
|
|
|
603
603
|
flattened[attributeKey] = String(scalar);
|
|
604
604
|
continue;
|
|
605
605
|
}
|
|
606
|
-
const nested = require_values.
|
|
606
|
+
const nested = require_values.asPlainRecordOrMap(value);
|
|
607
607
|
if (nested !== void 0) {
|
|
608
|
-
if (seen.has(
|
|
608
|
+
if (seen.has(value)) {
|
|
609
609
|
flattened[attributeKey] = "<circular-reference>";
|
|
610
610
|
continue;
|
|
611
611
|
}
|
|
612
|
-
seen.add(
|
|
612
|
+
seen.add(value);
|
|
613
613
|
flatten(nested, attributeKey);
|
|
614
614
|
continue;
|
|
615
615
|
}
|
|
616
616
|
try {
|
|
617
|
-
flattened[attributeKey] = JSON.stringify(value);
|
|
617
|
+
flattened[attributeKey] = JSON.stringify(value instanceof Set ? [...value] : value);
|
|
618
618
|
} catch {
|
|
619
619
|
flattened[attributeKey] = "<serialization-failed>";
|
|
620
620
|
}
|
package/dist/trace-helpers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as asNumber, l as asString, o as
|
|
2
|
-
import { t as requireModule } from "./node-require-
|
|
1
|
+
import { i as asNumber, l as asString, o as asPlainRecordOrMap, t as asBoolean, x as toError } from "./values-xBtdXtjA.js";
|
|
2
|
+
import { t as requireModule } from "./node-require-CkK_xzL-.js";
|
|
3
3
|
import { SpanStatusCode, context, trace } from "@opentelemetry/api";
|
|
4
4
|
|
|
5
5
|
//#region src/trace-helpers.ts
|
|
@@ -602,18 +602,18 @@ function flattenMetadata(metadata, prefix = "metadata") {
|
|
|
602
602
|
flattened[attributeKey] = String(scalar);
|
|
603
603
|
continue;
|
|
604
604
|
}
|
|
605
|
-
const nested =
|
|
605
|
+
const nested = asPlainRecordOrMap(value);
|
|
606
606
|
if (nested !== void 0) {
|
|
607
|
-
if (seen.has(
|
|
607
|
+
if (seen.has(value)) {
|
|
608
608
|
flattened[attributeKey] = "<circular-reference>";
|
|
609
609
|
continue;
|
|
610
610
|
}
|
|
611
|
-
seen.add(
|
|
611
|
+
seen.add(value);
|
|
612
612
|
flatten(nested, attributeKey);
|
|
613
613
|
continue;
|
|
614
614
|
}
|
|
615
615
|
try {
|
|
616
|
-
flattened[attributeKey] = JSON.stringify(value);
|
|
616
|
+
flattened[attributeKey] = JSON.stringify(value instanceof Set ? [...value] : value);
|
|
617
617
|
} catch {
|
|
618
618
|
flattened[attributeKey] = "<serialization-failed>";
|
|
619
619
|
}
|
package/dist/tracer-provider.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
2
|
+
const require_values = require('./values-tm4bi0FF.cjs');
|
|
3
3
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
4
4
|
|
|
5
5
|
//#region src/tracer-provider.ts
|
package/dist/tracer-provider.js
CHANGED
package/dist/validate.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
3
|
-
const require_structured_error = require('./structured-error
|
|
4
|
-
const require_stable_hash = require('./stable-hash-
|
|
2
|
+
const require_values = require('./values-tm4bi0FF.cjs');
|
|
3
|
+
const require_structured_error = require('./structured-error-BI9PFKZr.cjs');
|
|
4
|
+
const require_stable_hash = require('./stable-hash-C9F6xjzx.cjs');
|
|
5
5
|
const require_metric_helpers = require('./metric-helpers.cjs');
|
|
6
6
|
const require_validation_attributes = require('./validation-attributes.cjs');
|
|
7
7
|
let _opentelemetry_api = require("@opentelemetry/api");
|
package/dist/validate.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as asString, s as asRecord } from "./values-
|
|
2
|
-
import { t as createStructuredError } from "./structured-error-
|
|
3
|
-
import { t as hashJson } from "./stable-hash-
|
|
1
|
+
import { l as asString, s as asRecord } from "./values-xBtdXtjA.js";
|
|
2
|
+
import { t as createStructuredError } from "./structured-error-XpBdwnmv.js";
|
|
3
|
+
import { t as hashJson } from "./stable-hash-AOUgw1DW.js";
|
|
4
4
|
import { createCounter } from "./metric-helpers.js";
|
|
5
5
|
import { VALIDATION_ATTR, VALIDATION_ISSUE_CAP, VALIDATION_METRICS } from "./validation-attributes.js";
|
|
6
6
|
import { trace } from "@opentelemetry/api";
|
|
@@ -78,6 +78,14 @@ function asFunction(value) {
|
|
|
78
78
|
* The value as a plain object - one built from a literal, not an instance of
|
|
79
79
|
* some class that has its own idea of what it is.
|
|
80
80
|
*/
|
|
81
|
+
function asPlainRecordOrMap(value) {
|
|
82
|
+
if (value instanceof Map) {
|
|
83
|
+
const entries = {};
|
|
84
|
+
for (const [key, entry] of value) entries[String(key)] = entry;
|
|
85
|
+
return entries;
|
|
86
|
+
}
|
|
87
|
+
return asPlainRecord(value);
|
|
88
|
+
}
|
|
81
89
|
function asPlainRecord(value) {
|
|
82
90
|
const record = asRecord(value);
|
|
83
91
|
return record !== void 0 && Object.getPrototypeOf(record) === Object.prototype ? record : void 0;
|
|
@@ -113,6 +121,8 @@ function toAttributeValue(value) {
|
|
|
113
121
|
const scalar = asString(value) ?? asNumber(value) ?? asBoolean(value);
|
|
114
122
|
if (scalar !== void 0) return scalar;
|
|
115
123
|
if (Array.isArray(value)) return toAttributeArray(value);
|
|
124
|
+
if (value instanceof Set) return toAttributeArray([...value]);
|
|
125
|
+
if (value instanceof Map) return JSON.stringify(Object.fromEntries(value));
|
|
116
126
|
return JSON.stringify(value);
|
|
117
127
|
}
|
|
118
128
|
/** The scalars in an array, dropping the entries OTel cannot carry. */
|
|
@@ -169,10 +179,10 @@ Object.defineProperty(exports, 'asNumberArray', {
|
|
|
169
179
|
return asNumberArray;
|
|
170
180
|
}
|
|
171
181
|
});
|
|
172
|
-
Object.defineProperty(exports, '
|
|
182
|
+
Object.defineProperty(exports, 'asPlainRecordOrMap', {
|
|
173
183
|
enumerable: true,
|
|
174
184
|
get: function () {
|
|
175
|
-
return
|
|
185
|
+
return asPlainRecordOrMap;
|
|
176
186
|
}
|
|
177
187
|
});
|
|
178
188
|
Object.defineProperty(exports, 'asRecord', {
|
|
@@ -77,6 +77,14 @@ function asFunction(value) {
|
|
|
77
77
|
* The value as a plain object - one built from a literal, not an instance of
|
|
78
78
|
* some class that has its own idea of what it is.
|
|
79
79
|
*/
|
|
80
|
+
function asPlainRecordOrMap(value) {
|
|
81
|
+
if (value instanceof Map) {
|
|
82
|
+
const entries = {};
|
|
83
|
+
for (const [key, entry] of value) entries[String(key)] = entry;
|
|
84
|
+
return entries;
|
|
85
|
+
}
|
|
86
|
+
return asPlainRecord(value);
|
|
87
|
+
}
|
|
80
88
|
function asPlainRecord(value) {
|
|
81
89
|
const record = asRecord(value);
|
|
82
90
|
return record !== void 0 && Object.getPrototypeOf(record) === Object.prototype ? record : void 0;
|
|
@@ -112,6 +120,8 @@ function toAttributeValue(value) {
|
|
|
112
120
|
const scalar = asString(value) ?? asNumber(value) ?? asBoolean(value);
|
|
113
121
|
if (scalar !== void 0) return scalar;
|
|
114
122
|
if (Array.isArray(value)) return toAttributeArray(value);
|
|
123
|
+
if (value instanceof Set) return toAttributeArray([...value]);
|
|
124
|
+
if (value instanceof Map) return JSON.stringify(Object.fromEntries(value));
|
|
115
125
|
return JSON.stringify(value);
|
|
116
126
|
}
|
|
117
127
|
/** The scalars in an array, dropping the entries OTel cannot carry. */
|
|
@@ -138,4 +148,4 @@ function isDevelopment() {
|
|
|
138
148
|
}
|
|
139
149
|
|
|
140
150
|
//#endregion
|
|
141
|
-
export { readProperty as _, asNumberArray as a, toAttributeValue as b, asScalar as c, asStringRecord as d, describeValue as f, nonEmptyString as g, isFunction as h, asNumber as i, asString as l, isDevelopment as m, asBooleanArray as n,
|
|
151
|
+
export { readProperty as _, asNumberArray as a, toAttributeValue as b, asScalar as c, asStringRecord as d, describeValue as f, nonEmptyString as g, isFunction as h, asNumber as i, asString as l, isDevelopment as m, asBooleanArray as n, asPlainRecordOrMap as o, hasProcess as p, asFunction as r, asRecord as s, asBoolean as t, asStringArray as u, resolveValue as v, toError as x, splitNameOrOptions as y };
|
package/dist/webhook.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_structured_error = require('./structured-error
|
|
3
|
-
const require_functional = require('./functional-
|
|
4
|
-
const require_correlated_events = require('./correlated-events-
|
|
2
|
+
const require_structured_error = require('./structured-error-BI9PFKZr.cjs');
|
|
3
|
+
const require_functional = require('./functional-uOagkiCk.cjs');
|
|
4
|
+
const require_correlated_events = require('./correlated-events-9RRdfyWR.cjs');
|
|
5
5
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
6
6
|
|
|
7
7
|
//#region src/webhook.ts
|
package/dist/webhook.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as recordStructuredError } from "./structured-error-
|
|
2
|
-
import { c as withTracing } from "./functional-
|
|
3
|
-
import { t as emitCorrelatedEvent } from "./correlated-events-
|
|
1
|
+
import { r as recordStructuredError } from "./structured-error-XpBdwnmv.js";
|
|
2
|
+
import { c as withTracing } from "./functional-DzIFi7ml.js";
|
|
3
|
+
import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
|
|
4
4
|
import { SpanKind, trace } from "@opentelemetry/api";
|
|
5
5
|
|
|
6
6
|
//#region src/webhook.ts
|
|
@@ -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-tm4bi0FF.cjs');
|
|
3
|
+
const require_functional = require('./functional-uOagkiCk.cjs');
|
|
4
|
+
const require_correlated_events = require('./correlated-events-9RRdfyWR.cjs');
|
|
5
5
|
const require_business_baggage = require('./business-baggage.cjs');
|
|
6
6
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as isFunction, x as toError } from "./values-
|
|
2
|
-
import { c as withTracing } from "./functional-
|
|
3
|
-
import { t as emitCorrelatedEvent } from "./correlated-events-
|
|
1
|
+
import { h as isFunction, x as toError } from "./values-xBtdXtjA.js";
|
|
2
|
+
import { c as withTracing } from "./functional-DzIFi7ml.js";
|
|
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";
|
|
6
6
|
|
package/dist/workflow.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
|
|
3
|
-
const require_values = require('./values-
|
|
4
|
-
const require_functional = require('./functional-
|
|
3
|
+
const require_values = require('./values-tm4bi0FF.cjs');
|
|
4
|
+
const require_functional = require('./functional-uOagkiCk.cjs');
|
|
5
5
|
const require_trace_helpers = require('./trace-helpers.cjs');
|
|
6
|
-
const require_correlated_events = require('./correlated-events-
|
|
6
|
+
const require_correlated_events = require('./correlated-events-9RRdfyWR.cjs');
|
|
7
7
|
const require_trace_factory_validation = require('./trace-factory-validation-Dc8epn87.cjs');
|
|
8
8
|
let node_async_hooks = require("node:async_hooks");
|
|
9
9
|
node_async_hooks = require_rolldown_runtime.__toESM(node_async_hooks, 1);
|
package/dist/workflow.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as toAttributeValue, g as nonEmptyString, h as isFunction, l as asString, s as asRecord, x as toError } from "./values-
|
|
2
|
-
import { c as withTracing } from "./functional-
|
|
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 { c as withTracing } from "./functional-DzIFi7ml.js";
|
|
3
3
|
import { getActiveSpan } from "./trace-helpers.js";
|
|
4
|
-
import { t as emitCorrelatedEvent } from "./correlated-events-
|
|
4
|
+
import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
|
|
5
5
|
import { t as assertTraceFactory } from "./trace-factory-validation-BjVAinz6.js";
|
|
6
6
|
import * as nodeAsyncHooks from "node:async_hooks";
|
|
7
7
|
|
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-zGVUHByM.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
1
|
import { g as SamplingPreset } from "./sampling-Er217Mge.cjs";
|
|
2
|
-
import { a as AutotelConfig, o as OtlpSignal } from "./init-
|
|
2
|
+
import { a as AutotelConfig, o as OtlpSignal } from "./init-DxmeJ3d0.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
1
|
import { g as SamplingPreset } from "./sampling-DBng4Foa.js";
|
|
2
|
-
import { a as AutotelConfig, o as OtlpSignal } from "./init-
|
|
2
|
+
import { a as AutotelConfig, o as OtlpSignal } from "./init-BHV2gWsV.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-Dwj1goyE.js";
|
|
2
2
|
|
|
3
3
|
export { hasYamlConfig, loadYamlConfig, loadYamlConfigFromFile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autotel",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.2",
|
|
4
4
|
"description": "Write Once, Observe Anywhere",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -276,7 +276,9 @@
|
|
|
276
276
|
},
|
|
277
277
|
"files": [
|
|
278
278
|
"dist",
|
|
279
|
-
"README.md"
|
|
279
|
+
"README.md",
|
|
280
|
+
"LICENSE",
|
|
281
|
+
"NOTICE"
|
|
280
282
|
],
|
|
281
283
|
"keywords": [
|
|
282
284
|
"opentelemetry",
|