autotel 7.6.2 → 7.7.1

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.
Files changed (75) hide show
  1. package/dist/attributes.d.cts +1 -1
  2. package/dist/attributes.d.ts +1 -1
  3. package/dist/auto.cjs +1 -1
  4. package/dist/auto.js +1 -1
  5. package/dist/business-baggage.d.cts +1 -1
  6. package/dist/business-baggage.d.ts +1 -1
  7. package/dist/correlation-id.cjs +1 -1
  8. package/dist/correlation-id.js +1 -1
  9. package/dist/db.cjs +1 -1
  10. package/dist/db.js +1 -1
  11. package/dist/decorators.cjs +1 -1
  12. package/dist/decorators.d.cts +2 -2
  13. package/dist/decorators.d.ts +2 -2
  14. package/dist/decorators.js +1 -1
  15. package/dist/event.cjs +1 -1
  16. package/dist/event.js +1 -1
  17. package/dist/{functional-CgWcRXGX.d.cts → functional-C4mjgtJb.d.cts} +25 -2
  18. package/dist/{functional-RFFpQzAV.d.ts → functional-DN_ztd9C.d.ts} +25 -2
  19. package/dist/{functional-DzIFi7ml.js → functional-S9IJNlBn.js} +111 -26
  20. package/dist/{functional-uOagkiCk.cjs → functional-UIJ0CaTV.cjs} +114 -23
  21. package/dist/functional.cjs +2 -1
  22. package/dist/functional.d.cts +3 -3
  23. package/dist/functional.d.ts +3 -3
  24. package/dist/functional.js +2 -2
  25. package/dist/http.cjs +1 -1
  26. package/dist/http.js +1 -1
  27. package/dist/{index-Y7If_wH4.d.cts → index-8bFU4kmd.d.cts} +1 -1
  28. package/dist/{index-CsoeCsGL.d.ts → index-o_6YjZhV.d.ts} +1 -1
  29. package/dist/index.cjs +4 -3
  30. package/dist/index.d.cts +14 -5
  31. package/dist/index.d.ts +14 -5
  32. package/dist/index.js +4 -4
  33. package/dist/{init-zGVUHByM.cjs → init-BYXDCfRL.cjs} +57 -20
  34. package/dist/{init-BHV2gWsV.d.ts → init-CKSMbJUG.d.ts} +17 -1
  35. package/dist/{init-Dwj1goyE.js → init-Dyq6WtsO.js} +57 -20
  36. package/dist/{init-DxmeJ3d0.d.cts → init-WwjD-kQu.d.cts} +17 -1
  37. package/dist/instrumentation.cjs +1 -1
  38. package/dist/instrumentation.js +1 -1
  39. package/dist/messaging.cjs +2 -2
  40. package/dist/messaging.d.cts +1 -1
  41. package/dist/messaging.d.ts +1 -1
  42. package/dist/messaging.js +2 -2
  43. package/dist/sampling.cjs +1 -1
  44. package/dist/sampling.js +1 -1
  45. package/dist/semantic-helpers.cjs +1 -1
  46. package/dist/semantic-helpers.d.cts +1 -1
  47. package/dist/semantic-helpers.d.ts +1 -1
  48. package/dist/semantic-helpers.js +1 -1
  49. package/dist/{structured-error-BI9PFKZr.cjs → structured-error-BAXhglRE.cjs} +47 -24
  50. package/dist/{structured-error-XpBdwnmv.js → structured-error-Y9y-1Pae.js} +47 -24
  51. package/dist/tail-sampling-processor.cjs +1 -1
  52. package/dist/tail-sampling-processor.js +1 -1
  53. package/dist/testing.cjs +14 -0
  54. package/dist/testing.js +15 -1
  55. package/dist/{trace-context-f89xPJbK.d.ts → trace-context-CqCblIQE.d.ts} +12 -5
  56. package/dist/{trace-context-C1Cn1q0y.d.cts → trace-context-f7Xq0Q2q.d.cts} +12 -5
  57. package/dist/validate.cjs +1 -1
  58. package/dist/validate.js +1 -1
  59. package/dist/webhook.cjs +2 -2
  60. package/dist/webhook.d.cts +1 -1
  61. package/dist/webhook.d.ts +1 -1
  62. package/dist/webhook.js +2 -2
  63. package/dist/workflow-distributed.cjs +1 -1
  64. package/dist/workflow-distributed.d.cts +1 -1
  65. package/dist/workflow-distributed.d.ts +1 -1
  66. package/dist/workflow-distributed.js +1 -1
  67. package/dist/workflow.cjs +1 -1
  68. package/dist/workflow.d.cts +1 -1
  69. package/dist/workflow.d.ts +1 -1
  70. package/dist/workflow.js +1 -1
  71. package/dist/yaml-config.cjs +1 -1
  72. package/dist/yaml-config.d.cts +2 -2
  73. package/dist/yaml-config.d.ts +2 -2
  74. package/dist/yaml-config.js +1 -1
  75. package/package.json +419 -159
@@ -2,19 +2,33 @@ const require_values = require('./values-tm4bi0FF.cjs');
2
2
  let _opentelemetry_api = require("@opentelemetry/api");
3
3
 
4
4
  //#region src/flatten-attributes.ts
5
+ /** What a value that cannot be represented is recorded as. */
6
+ const INVALID_DATE = "<invalid-date>";
7
+ const INVALID_NUMBER = "<invalid-number>";
8
+ const SERIALIZATION_FAILED = "<serialization-failed>";
9
+ const CIRCULAR_REFERENCE = "<circular-reference>";
5
10
  /**
6
11
  * Convert a value that arrived from outside to an OTel-compatible
7
12
  * AttributeValue. Returns undefined when the value cannot be represented -
8
13
  * which is how flattenToAttributes below learns it has an object to descend
9
14
  * into rather than a leaf to record.
15
+ *
16
+ * Total by construction: this runs on whatever an application hands an
17
+ * attribute setter, so a value that cannot be read is a marker in the
18
+ * telemetry, never an exception on the request path.
10
19
  */
11
20
  function toAttributeValue(value) {
12
21
  const scalar = require_values.asString(value) ?? require_values.asNumber(value) ?? require_values.asBoolean(value);
13
22
  if (scalar !== void 0) return scalar;
14
- if (Array.isArray(value)) return toAttributeArray(value);
15
- if (value instanceof Set) return toAttributeArray([...value]);
16
- if (value instanceof Date) return value.toISOString();
17
- if (value instanceof Error) return value.message;
23
+ if (typeof value === "number") return INVALID_NUMBER;
24
+ try {
25
+ if (Array.isArray(value)) return toAttributeArray(value);
26
+ if (value instanceof Set) return toAttributeArray([...value]);
27
+ if (value instanceof Date) return Number.isNaN(value.getTime()) ? INVALID_DATE : value.toISOString();
28
+ if (value instanceof Error) return value.message;
29
+ } catch {
30
+ return SERIALIZATION_FAILED;
31
+ }
18
32
  }
19
33
  /** A homogeneous array as itself; anything else as the JSON it serialises to. */
20
34
  function toAttributeArray(values) {
@@ -27,43 +41,52 @@ function toAttributeArray(values) {
27
41
  try {
28
42
  return JSON.stringify(values);
29
43
  } catch {
30
- return "<serialization-failed>";
44
+ return SERIALIZATION_FAILED;
31
45
  }
32
46
  }
33
47
  /**
34
48
  * Recursively flatten a nested object into dot-notation OTel attributes.
35
49
  * Includes circular reference protection via WeakSet.
50
+ *
51
+ * Every key is converted inside its own guard, so one value that cannot be read
52
+ * - a getter that throws, an exotic proxy, a `Map` whose key has no string form
53
+ * - costs that key alone and never the call. Keys are listed before their
54
+ * values are read, so a sibling of the bad value still lands.
36
55
  */
37
56
  function flattenToAttributes(fields, prefix = "") {
38
57
  const out = {};
39
58
  const seen = /* @__PURE__ */ new WeakSet();
40
59
  function flatten(obj, currentPrefix) {
41
- for (const [key, value] of Object.entries(obj)) {
42
- if (value == null) continue;
60
+ for (const key of Object.keys(obj)) {
43
61
  const nextKey = currentPrefix ? `${currentPrefix}.${key}` : key;
44
- const attr = toAttributeValue(value);
45
- if (attr !== void 0) {
46
- out[nextKey] = attr;
47
- continue;
48
- }
49
- const nested = require_values.asPlainRecordOrMap(value);
50
- if (nested !== void 0) {
51
- if (seen.has(value)) {
52
- out[nextKey] = "<circular-reference>";
62
+ try {
63
+ const value = obj[key];
64
+ if (value == null) continue;
65
+ const attr = toAttributeValue(value);
66
+ if (attr !== void 0) {
67
+ out[nextKey] = attr;
53
68
  continue;
54
69
  }
55
- seen.add(value);
56
- flatten(nested, nextKey);
57
- continue;
58
- }
59
- try {
60
- out[nextKey] = JSON.stringify(value);
70
+ const nested = require_values.asPlainRecordOrMap(value);
71
+ if (nested !== void 0) {
72
+ if (seen.has(value)) {
73
+ out[nextKey] = CIRCULAR_REFERENCE;
74
+ continue;
75
+ }
76
+ seen.add(value);
77
+ flatten(nested, nextKey);
78
+ continue;
79
+ }
80
+ const json = JSON.stringify(value);
81
+ if (json !== void 0) out[nextKey] = json;
61
82
  } catch {
62
- out[nextKey] = "<serialization-failed>";
83
+ out[nextKey] = SERIALIZATION_FAILED;
63
84
  }
64
85
  }
65
86
  }
66
- flatten(fields, prefix);
87
+ try {
88
+ flatten(fields, prefix);
89
+ } catch {}
67
90
  return out;
68
91
  }
69
92
 
@@ -2,19 +2,33 @@ import { h as isFunction, i as asNumber, l as asString, o as asPlainRecordOrMap,
2
2
  import { SpanStatusCode } from "@opentelemetry/api";
3
3
 
4
4
  //#region src/flatten-attributes.ts
5
+ /** What a value that cannot be represented is recorded as. */
6
+ const INVALID_DATE = "<invalid-date>";
7
+ const INVALID_NUMBER = "<invalid-number>";
8
+ const SERIALIZATION_FAILED = "<serialization-failed>";
9
+ const CIRCULAR_REFERENCE = "<circular-reference>";
5
10
  /**
6
11
  * Convert a value that arrived from outside to an OTel-compatible
7
12
  * AttributeValue. Returns undefined when the value cannot be represented -
8
13
  * which is how flattenToAttributes below learns it has an object to descend
9
14
  * into rather than a leaf to record.
15
+ *
16
+ * Total by construction: this runs on whatever an application hands an
17
+ * attribute setter, so a value that cannot be read is a marker in the
18
+ * telemetry, never an exception on the request path.
10
19
  */
11
20
  function toAttributeValue(value) {
12
21
  const scalar = asString(value) ?? asNumber(value) ?? asBoolean(value);
13
22
  if (scalar !== void 0) return scalar;
14
- if (Array.isArray(value)) return toAttributeArray(value);
15
- if (value instanceof Set) return toAttributeArray([...value]);
16
- if (value instanceof Date) return value.toISOString();
17
- if (value instanceof Error) return value.message;
23
+ if (typeof value === "number") return INVALID_NUMBER;
24
+ try {
25
+ if (Array.isArray(value)) return toAttributeArray(value);
26
+ if (value instanceof Set) return toAttributeArray([...value]);
27
+ if (value instanceof Date) return Number.isNaN(value.getTime()) ? INVALID_DATE : value.toISOString();
28
+ if (value instanceof Error) return value.message;
29
+ } catch {
30
+ return SERIALIZATION_FAILED;
31
+ }
18
32
  }
19
33
  /** A homogeneous array as itself; anything else as the JSON it serialises to. */
20
34
  function toAttributeArray(values) {
@@ -27,43 +41,52 @@ function toAttributeArray(values) {
27
41
  try {
28
42
  return JSON.stringify(values);
29
43
  } catch {
30
- return "<serialization-failed>";
44
+ return SERIALIZATION_FAILED;
31
45
  }
32
46
  }
33
47
  /**
34
48
  * Recursively flatten a nested object into dot-notation OTel attributes.
35
49
  * Includes circular reference protection via WeakSet.
50
+ *
51
+ * Every key is converted inside its own guard, so one value that cannot be read
52
+ * - a getter that throws, an exotic proxy, a `Map` whose key has no string form
53
+ * - costs that key alone and never the call. Keys are listed before their
54
+ * values are read, so a sibling of the bad value still lands.
36
55
  */
37
56
  function flattenToAttributes(fields, prefix = "") {
38
57
  const out = {};
39
58
  const seen = /* @__PURE__ */ new WeakSet();
40
59
  function flatten(obj, currentPrefix) {
41
- for (const [key, value] of Object.entries(obj)) {
42
- if (value == null) continue;
60
+ for (const key of Object.keys(obj)) {
43
61
  const nextKey = currentPrefix ? `${currentPrefix}.${key}` : key;
44
- const attr = toAttributeValue(value);
45
- if (attr !== void 0) {
46
- out[nextKey] = attr;
47
- continue;
48
- }
49
- const nested = asPlainRecordOrMap(value);
50
- if (nested !== void 0) {
51
- if (seen.has(value)) {
52
- out[nextKey] = "<circular-reference>";
62
+ try {
63
+ const value = obj[key];
64
+ if (value == null) continue;
65
+ const attr = toAttributeValue(value);
66
+ if (attr !== void 0) {
67
+ out[nextKey] = attr;
53
68
  continue;
54
69
  }
55
- seen.add(value);
56
- flatten(nested, nextKey);
57
- continue;
58
- }
59
- try {
60
- out[nextKey] = JSON.stringify(value);
70
+ const nested = asPlainRecordOrMap(value);
71
+ if (nested !== void 0) {
72
+ if (seen.has(value)) {
73
+ out[nextKey] = CIRCULAR_REFERENCE;
74
+ continue;
75
+ }
76
+ seen.add(value);
77
+ flatten(nested, nextKey);
78
+ continue;
79
+ }
80
+ const json = JSON.stringify(value);
81
+ if (json !== void 0) out[nextKey] = json;
61
82
  } catch {
62
- out[nextKey] = "<serialization-failed>";
83
+ out[nextKey] = SERIALIZATION_FAILED;
63
84
  }
64
85
  }
65
86
  }
66
- flatten(fields, prefix);
87
+ try {
88
+ flatten(fields, prefix);
89
+ } catch {}
67
90
  return out;
68
91
  }
69
92
 
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-zGVUHByM.cjs');
2
+ const require_init = require('./init-BYXDCfRL.cjs');
3
3
 
4
4
  exports.TailSamplingSpanProcessor = require_init.TailSamplingSpanProcessor;
@@ -1,3 +1,3 @@
1
- import { x as TailSamplingSpanProcessor } from "./init-Dwj1goyE.js";
1
+ import { x as TailSamplingSpanProcessor } from "./init-Dyq6WtsO.js";
2
2
 
3
3
  export { TailSamplingSpanProcessor };
package/dist/testing.cjs CHANGED
@@ -7,6 +7,7 @@ const require_test_span_collector = require('./test-span-collector.cjs');
7
7
  let _opentelemetry_api = require("@opentelemetry/api");
8
8
  let node_async_hooks = require("node:async_hooks");
9
9
  node_async_hooks = require_rolldown_runtime.__toESM(node_async_hooks, 1);
10
+ let _opentelemetry_context_async_hooks = require("@opentelemetry/context-async-hooks");
10
11
 
11
12
  //#region src/memory-exporter.ts
12
13
  function toRecordedSpan(span) {
@@ -63,6 +64,18 @@ function createMemoryExporter() {
63
64
  * ```
64
65
  */
65
66
  /**
67
+ * `context.with()` propagates only through a registered context manager, and
68
+ * a test project that never calls `init()` has none: no active span, so the
69
+ * ambient `ctx` writes nowhere and spans have no parent. Register the class
70
+ * `init()` would register when a probe shows nothing propagates, so `bind()`
71
+ * on an EventEmitter works and a later `init()` changes nothing observable.
72
+ */
73
+ function ensureContextManager() {
74
+ const probe = (0, _opentelemetry_api.createContextKey)("autotel.testing.probe");
75
+ if (_opentelemetry_api.context.with(_opentelemetry_api.ROOT_CONTEXT.setValue(probe, true), () => _opentelemetry_api.context.active().getValue(probe) === true)) return;
76
+ _opentelemetry_api.context.setGlobalContextManager(new _opentelemetry_context_async_hooks.AsyncLocalStorageContextManager().enable());
77
+ }
78
+ /**
66
79
  * Create an in-memory trace collector for testing
67
80
  *
68
81
  * IMPORTANT: This automatically configures the global tracer to record spans.
@@ -89,6 +102,7 @@ function createMemoryExporter() {
89
102
  * ```
90
103
  */
91
104
  function createTraceCollector() {
105
+ ensureContextManager();
92
106
  const spans = [];
93
107
  const activeMockSpanStorage = new node_async_hooks.AsyncLocalStorage();
94
108
  let nextTraceId = 1;
package/dist/testing.js CHANGED
@@ -2,8 +2,9 @@ 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";
5
- import { SpanStatusCode, context, trace } from "@opentelemetry/api";
5
+ import { ROOT_CONTEXT, SpanStatusCode, context, createContextKey, trace } from "@opentelemetry/api";
6
6
  import * as nodeAsyncHooks from "node:async_hooks";
7
+ import { AsyncLocalStorageContextManager } from "@opentelemetry/context-async-hooks";
7
8
 
8
9
  //#region src/memory-exporter.ts
9
10
  function toRecordedSpan(span) {
@@ -60,6 +61,18 @@ function createMemoryExporter() {
60
61
  * ```
61
62
  */
62
63
  /**
64
+ * `context.with()` propagates only through a registered context manager, and
65
+ * a test project that never calls `init()` has none: no active span, so the
66
+ * ambient `ctx` writes nowhere and spans have no parent. Register the class
67
+ * `init()` would register when a probe shows nothing propagates, so `bind()`
68
+ * on an EventEmitter works and a later `init()` changes nothing observable.
69
+ */
70
+ function ensureContextManager() {
71
+ const probe = createContextKey("autotel.testing.probe");
72
+ if (context.with(ROOT_CONTEXT.setValue(probe, true), () => context.active().getValue(probe) === true)) return;
73
+ context.setGlobalContextManager(new AsyncLocalStorageContextManager().enable());
74
+ }
75
+ /**
63
76
  * Create an in-memory trace collector for testing
64
77
  *
65
78
  * IMPORTANT: This automatically configures the global tracer to record spans.
@@ -86,6 +99,7 @@ function createMemoryExporter() {
86
99
  * ```
87
100
  */
88
101
  function createTraceCollector() {
102
+ ensureContextManager();
89
103
  const spans = [];
90
104
  const activeMockSpanStorage = new nodeAsyncHooks.AsyncLocalStorage();
91
105
  let nextTraceId = 1;
@@ -1,5 +1,5 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.js";
2
- import { AttributeValue, Attributes, BaggageEntry, Context, Link, Span, SpanStatusCode } from "@opentelemetry/api";
2
+ import { AttributeValue, BaggageEntry, Context, Link, Span, SpanStatusCode } from "@opentelemetry/api";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  //#region src/trace-context.d.ts
5
5
  /**
@@ -19,10 +19,17 @@ type AttributeValue$1 = AttributeValue;
19
19
  * Span methods available on trace context
20
20
  */
21
21
  interface SpanMethods {
22
- /** Set a single attribute on the span */
23
- setAttribute(key: string, value: AttributeValue$1): void;
24
- /** Set multiple attributes on the span */
25
- setAttributes(attrs: Attributes): void;
22
+ /**
23
+ * Set a single attribute on the span.
24
+ *
25
+ * A scalar or homogeneous array is recorded as given. Anything richer - a
26
+ * nested object, a `Map`, a `Set`, a `Date` - is flattened to dot-notation
27
+ * keys (`client.rights` + `{ admin: true }` gives `client.rights.admin`),
28
+ * the same rule the request logger and structured errors follow.
29
+ */
30
+ setAttribute(key: string, value: unknown): void;
31
+ /** Set multiple attributes on the span, flattened as {@link setAttribute} does */
32
+ setAttributes(attrs: UnknownRecord): void;
26
33
  /** Set the status of the span */
27
34
  setStatus(status: {
28
35
  code: SpanStatusCode;
@@ -1,5 +1,5 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.cjs";
2
- import { AttributeValue, Attributes, BaggageEntry, Context, Link, Span, SpanStatusCode } from "@opentelemetry/api";
2
+ import { AttributeValue, BaggageEntry, Context, Link, Span, SpanStatusCode } from "@opentelemetry/api";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  //#region src/trace-context.d.ts
5
5
  /**
@@ -19,10 +19,17 @@ type AttributeValue$1 = AttributeValue;
19
19
  * Span methods available on trace context
20
20
  */
21
21
  interface SpanMethods {
22
- /** Set a single attribute on the span */
23
- setAttribute(key: string, value: AttributeValue$1): void;
24
- /** Set multiple attributes on the span */
25
- setAttributes(attrs: Attributes): void;
22
+ /**
23
+ * Set a single attribute on the span.
24
+ *
25
+ * A scalar or homogeneous array is recorded as given. Anything richer - a
26
+ * nested object, a `Map`, a `Set`, a `Date` - is flattened to dot-notation
27
+ * keys (`client.rights` + `{ admin: true }` gives `client.rights.admin`),
28
+ * the same rule the request logger and structured errors follow.
29
+ */
30
+ setAttribute(key: string, value: unknown): void;
31
+ /** Set multiple attributes on the span, flattened as {@link setAttribute} does */
32
+ setAttributes(attrs: UnknownRecord): void;
26
33
  /** Set the status of the span */
27
34
  setStatus(status: {
28
35
  code: SpanStatusCode;
package/dist/validate.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_values = require('./values-tm4bi0FF.cjs');
3
- const require_structured_error = require('./structured-error-BI9PFKZr.cjs');
3
+ const require_structured_error = require('./structured-error-BAXhglRE.cjs');
4
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');
package/dist/validate.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { l as asString, s as asRecord } from "./values-xBtdXtjA.js";
2
- import { t as createStructuredError } from "./structured-error-XpBdwnmv.js";
2
+ import { t as createStructuredError } from "./structured-error-Y9y-1Pae.js";
3
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";
package/dist/webhook.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_structured_error = require('./structured-error-BI9PFKZr.cjs');
3
- const require_functional = require('./functional-uOagkiCk.cjs');
2
+ const require_structured_error = require('./structured-error-BAXhglRE.cjs');
3
+ const require_functional = require('./functional-UIJ0CaTV.cjs');
4
4
  const require_correlated_events = require('./correlated-events-9RRdfyWR.cjs');
5
5
  let _opentelemetry_api = require("@opentelemetry/api");
6
6
 
@@ -1,4 +1,4 @@
1
- import { n as TraceContext } from "./trace-context-C1Cn1q0y.cjs";
1
+ import { n as TraceContext } from "./trace-context-f7Xq0Q2q.cjs";
2
2
  import { Link, SpanContext } from "@opentelemetry/api";
3
3
  //#region src/webhook.d.ts
4
4
  /**
package/dist/webhook.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as TraceContext } from "./trace-context-f89xPJbK.js";
1
+ import { n as TraceContext } from "./trace-context-CqCblIQE.js";
2
2
  import { Link, SpanContext } from "@opentelemetry/api";
3
3
  //#region src/webhook.d.ts
4
4
  /**
package/dist/webhook.js CHANGED
@@ -1,5 +1,5 @@
1
- import { r as recordStructuredError } from "./structured-error-XpBdwnmv.js";
2
- import { c as withTracing } from "./functional-DzIFi7ml.js";
1
+ import { r as recordStructuredError } from "./structured-error-Y9y-1Pae.js";
2
+ import { l as withTracing } from "./functional-S9IJNlBn.js";
3
3
  import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
4
4
  import { SpanKind, trace } from "@opentelemetry/api";
5
5
 
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_values = require('./values-tm4bi0FF.cjs');
3
- const require_functional = require('./functional-uOagkiCk.cjs');
3
+ const require_functional = require('./functional-UIJ0CaTV.cjs');
4
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");
@@ -1,5 +1,5 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.cjs";
2
- import { n as TraceContext } from "./trace-context-C1Cn1q0y.cjs";
2
+ import { n as TraceContext } from "./trace-context-f7Xq0Q2q.cjs";
3
3
  import { SafeBaggageSchema } from "./business-baggage.cjs";
4
4
  //#region src/workflow-distributed.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.js";
2
- import { n as TraceContext } from "./trace-context-f89xPJbK.js";
2
+ import { n as TraceContext } from "./trace-context-CqCblIQE.js";
3
3
  import { SafeBaggageSchema } from "./business-baggage.js";
4
4
  //#region src/workflow-distributed.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { h as isFunction, x as toError } from "./values-xBtdXtjA.js";
2
- import { c as withTracing } from "./functional-DzIFi7ml.js";
2
+ import { l as withTracing } from "./functional-S9IJNlBn.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";
package/dist/workflow.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
3
3
  const require_values = require('./values-tm4bi0FF.cjs');
4
- const require_functional = require('./functional-uOagkiCk.cjs');
4
+ const require_functional = require('./functional-UIJ0CaTV.cjs');
5
5
  const require_trace_helpers = require('./trace-helpers.cjs');
6
6
  const require_correlated_events = require('./correlated-events-9RRdfyWR.cjs');
7
7
  const require_trace_factory_validation = require('./trace-factory-validation-Dc8epn87.cjs');
@@ -1,4 +1,4 @@
1
- import { n as TraceContext } from "./trace-context-C1Cn1q0y.cjs";
1
+ import { n as TraceContext } from "./trace-context-f7Xq0Q2q.cjs";
2
2
  import { Attributes, SpanContext } from "@opentelemetry/api";
3
3
  //#region src/workflow.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { n as TraceContext } from "./trace-context-f89xPJbK.js";
1
+ import { n as TraceContext } from "./trace-context-CqCblIQE.js";
2
2
  import { Attributes, SpanContext } from "@opentelemetry/api";
3
3
  //#region src/workflow.d.ts
4
4
  /**
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 { c as withTracing } from "./functional-DzIFi7ml.js";
2
+ import { l as withTracing } from "./functional-S9IJNlBn.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";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-zGVUHByM.cjs');
2
+ const require_init = require('./init-BYXDCfRL.cjs');
3
3
 
4
4
  exports.hasYamlConfig = require_init.hasYamlConfig;
5
5
  exports.loadYamlConfig = require_init.loadYamlConfig;
@@ -1,5 +1,5 @@
1
1
  import { g as SamplingPreset } from "./sampling-Er217Mge.cjs";
2
- import { a as AutotelConfig, o as OtlpSignal } from "./init-DxmeJ3d0.cjs";
2
+ import { a as AutotelConfig, o as OtlpSignal } from "./init-WwjD-kQu.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;
@@ -40,7 +40,7 @@ interface YamlConfig {
40
40
  };
41
41
  autoInstrumentations?: string[] | Record<string, {
42
42
  enabled?: boolean;
43
- }>;
43
+ } & Record<string, unknown>>;
44
44
  /** Path to a policy `.json` file or a directory of them (OTEP 4738). */
45
45
  policies?: string;
46
46
  debug?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { g as SamplingPreset } from "./sampling-DBng4Foa.js";
2
- import { a as AutotelConfig, o as OtlpSignal } from "./init-BHV2gWsV.js";
2
+ import { a as AutotelConfig, o as OtlpSignal } from "./init-CKSMbJUG.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;
@@ -40,7 +40,7 @@ interface YamlConfig {
40
40
  };
41
41
  autoInstrumentations?: string[] | Record<string, {
42
42
  enabled?: boolean;
43
- }>;
43
+ } & Record<string, unknown>>;
44
44
  /** Path to a policy `.json` file or a directory of them (OTEP 4738). */
45
45
  policies?: string;
46
46
  debug?: boolean;
@@ -1,3 +1,3 @@
1
- import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-Dwj1goyE.js";
1
+ import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-Dyq6WtsO.js";
2
2
 
3
3
  export { hasYamlConfig, loadYamlConfig, loadYamlConfigFromFile };