autotel 7.6.1 → 7.7.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.
Files changed (116) hide show
  1. package/NOTICE +9 -0
  2. package/dist/attribute-redacting-processor.cjs +1 -1
  3. package/dist/attribute-redacting-processor.js +1 -1
  4. package/dist/{attributes-DQQl-D6Q.js → attributes-De9Fx0b4.js} +1 -1
  5. package/dist/{attributes-DnfoMlA9.cjs → attributes-DkptT2Ck.cjs} +1 -1
  6. package/dist/attributes.cjs +1 -1
  7. package/dist/attributes.d.cts +1 -1
  8. package/dist/attributes.d.ts +1 -1
  9. package/dist/attributes.js +1 -1
  10. package/dist/auto.cjs +1 -1
  11. package/dist/auto.js +1 -1
  12. package/dist/business-baggage.cjs +1 -1
  13. package/dist/business-baggage.d.cts +1 -1
  14. package/dist/business-baggage.d.ts +1 -1
  15. package/dist/business-baggage.js +1 -1
  16. package/dist/{canonical-log-line-processor-CBv-OCp4.js → canonical-log-line-processor-BQ6NeZAk.js} +1 -1
  17. package/dist/{canonical-log-line-processor-B-tzezhk.cjs → canonical-log-line-processor-Bvgb1lE4.cjs} +1 -1
  18. package/dist/{correlated-events-CcuknWnU.cjs → correlated-events-9RRdfyWR.cjs} +1 -1
  19. package/dist/{correlated-events-DwMMbItg.js → correlated-events-BfpH5uS-.js} +1 -1
  20. package/dist/correlation-id.cjs +1 -1
  21. package/dist/correlation-id.js +1 -1
  22. package/dist/db.cjs +1 -1
  23. package/dist/db.js +1 -1
  24. package/dist/decorators.cjs +2 -2
  25. package/dist/decorators.d.cts +2 -2
  26. package/dist/decorators.d.ts +2 -2
  27. package/dist/decorators.js +2 -2
  28. package/dist/diagnostics.cjs +2 -2
  29. package/dist/diagnostics.js +2 -2
  30. package/dist/event.cjs +1 -1
  31. package/dist/event.js +1 -1
  32. package/dist/exception-fingerprint.cjs +1 -1
  33. package/dist/exception-fingerprint.js +1 -1
  34. package/dist/{functional-CgWcRXGX.d.cts → functional-C4mjgtJb.d.cts} +25 -2
  35. package/dist/{functional-zasLBPyX.cjs → functional-CJI0HCVJ.cjs} +113 -23
  36. package/dist/{functional-BXgTFVTA.js → functional-Cnga_Lnv.js} +109 -25
  37. package/dist/{functional-RFFpQzAV.d.ts → functional-DN_ztd9C.d.ts} +25 -2
  38. package/dist/functional.cjs +2 -1
  39. package/dist/functional.d.cts +3 -3
  40. package/dist/functional.d.ts +3 -3
  41. package/dist/functional.js +2 -2
  42. package/dist/http.cjs +2 -2
  43. package/dist/http.js +2 -2
  44. package/dist/{index-Y7If_wH4.d.cts → index-8bFU4kmd.d.cts} +1 -1
  45. package/dist/{index-CsoeCsGL.d.ts → index-o_6YjZhV.d.ts} +1 -1
  46. package/dist/index.cjs +9 -8
  47. package/dist/index.d.cts +14 -5
  48. package/dist/index.d.ts +14 -5
  49. package/dist/index.js +9 -9
  50. package/dist/{init-OSYC19sK.cjs → init-BYXDCfRL.cjs} +60 -23
  51. package/dist/{init-BHV2gWsV.d.ts → init-CKSMbJUG.d.ts} +17 -1
  52. package/dist/{init-Bst_BhiS.js → init-Dyq6WtsO.js} +60 -23
  53. package/dist/{init-DxmeJ3d0.d.cts → init-WwjD-kQu.d.cts} +17 -1
  54. package/dist/instrumentation.cjs +2 -2
  55. package/dist/instrumentation.js +2 -2
  56. package/dist/{logger-DdPp__xW.js → logger-B2VPcBgZ.js} +1 -1
  57. package/dist/{logger-Sm66cjKl.cjs → logger-CSdZkxbh.cjs} +1 -1
  58. package/dist/logger.cjs +1 -1
  59. package/dist/logger.js +1 -1
  60. package/dist/messaging-adapters.cjs +1 -1
  61. package/dist/messaging-adapters.js +1 -1
  62. package/dist/messaging.cjs +4 -4
  63. package/dist/messaging.d.cts +1 -1
  64. package/dist/messaging.d.ts +1 -1
  65. package/dist/messaging.js +4 -4
  66. package/dist/{node-require-EifOMikz.cjs → node-require-B_IVapV3.cjs} +1 -1
  67. package/dist/{node-require-DSPjaw_l.js → node-require-CkK_xzL-.js} +1 -1
  68. package/dist/parse-error.cjs +1 -1
  69. package/dist/parse-error.js +1 -1
  70. package/dist/policy.cjs +0 -0
  71. package/dist/policy.js +0 -0
  72. package/dist/processors.cjs +1 -1
  73. package/dist/processors.js +1 -1
  74. package/dist/sampling.cjs +1 -1
  75. package/dist/sampling.js +1 -1
  76. package/dist/semantic-helpers.cjs +2 -2
  77. package/dist/semantic-helpers.d.cts +1 -1
  78. package/dist/semantic-helpers.d.ts +1 -1
  79. package/dist/semantic-helpers.js +2 -2
  80. package/dist/{stable-hash-BkoAYVks.js → stable-hash-AOUgw1DW.js} +1 -1
  81. package/dist/{stable-hash-C0pOegH_.cjs → stable-hash-C9F6xjzx.cjs} +1 -1
  82. package/dist/{structured-error--_wXpd_C.cjs → structured-error-BAXhglRE.cjs} +48 -24
  83. package/dist/{structured-error-YIuka-FE.js → structured-error-Y9y-1Pae.js} +48 -24
  84. package/dist/tail-sampling-processor.cjs +1 -1
  85. package/dist/tail-sampling-processor.js +1 -1
  86. package/dist/test-span-collector.cjs +1 -1
  87. package/dist/test-span-collector.js +1 -1
  88. package/dist/testing.cjs +1 -1
  89. package/dist/testing.js +1 -1
  90. package/dist/{trace-context-f89xPJbK.d.ts → trace-context-CqCblIQE.d.ts} +12 -5
  91. package/dist/{trace-context-C1Cn1q0y.d.cts → trace-context-f7Xq0Q2q.d.cts} +12 -5
  92. package/dist/trace-helpers.cjs +6 -6
  93. package/dist/trace-helpers.js +6 -6
  94. package/dist/tracer-provider.cjs +1 -1
  95. package/dist/tracer-provider.js +1 -1
  96. package/dist/validate.cjs +3 -3
  97. package/dist/validate.js +3 -3
  98. package/dist/{values-DApyq53y.cjs → values-tm4bi0FF.cjs} +12 -2
  99. package/dist/{values-BenyvWKz.js → values-xBtdXtjA.js} +11 -1
  100. package/dist/webhook.cjs +3 -3
  101. package/dist/webhook.d.cts +1 -1
  102. package/dist/webhook.d.ts +1 -1
  103. package/dist/webhook.js +3 -3
  104. package/dist/workflow-distributed.cjs +3 -3
  105. package/dist/workflow-distributed.d.cts +1 -1
  106. package/dist/workflow-distributed.d.ts +1 -1
  107. package/dist/workflow-distributed.js +3 -3
  108. package/dist/workflow.cjs +3 -3
  109. package/dist/workflow.d.cts +1 -1
  110. package/dist/workflow.d.ts +1 -1
  111. package/dist/workflow.js +3 -3
  112. package/dist/yaml-config.cjs +1 -1
  113. package/dist/yaml-config.d.cts +2 -2
  114. package/dist/yaml-config.d.ts +2 -2
  115. package/dist/yaml-config.js +1 -1
  116. package/package.json +4 -2
package/dist/testing.js CHANGED
@@ -1,4 +1,4 @@
1
- import { l as asString, s as asRecord } from "./values-BenyvWKz.js";
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";
@@ -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;
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_values = require('./values-DApyq53y.cjs');
3
- const require_node_require = require('./node-require-EifOMikz.cjs');
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.asPlainRecord(value);
606
+ const nested = require_values.asPlainRecordOrMap(value);
607
607
  if (nested !== void 0) {
608
- if (seen.has(nested)) {
608
+ if (seen.has(value)) {
609
609
  flattened[attributeKey] = "<circular-reference>";
610
610
  continue;
611
611
  }
612
- seen.add(nested);
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
  }
@@ -1,5 +1,5 @@
1
- import { i as asNumber, l as asString, o as asPlainRecord, t as asBoolean, x as toError } from "./values-BenyvWKz.js";
2
- import { t as requireModule } from "./node-require-DSPjaw_l.js";
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 = asPlainRecord(value);
605
+ const nested = asPlainRecordOrMap(value);
606
606
  if (nested !== void 0) {
607
- if (seen.has(nested)) {
607
+ if (seen.has(value)) {
608
608
  flattened[attributeKey] = "<circular-reference>";
609
609
  continue;
610
610
  }
611
- seen.add(nested);
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
  }
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_values = require('./values-DApyq53y.cjs');
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
@@ -1,4 +1,4 @@
1
- import { _ as readProperty, h as isFunction, r as asFunction } from "./values-BenyvWKz.js";
1
+ import { _ as readProperty, h as isFunction, r as asFunction } from "./values-xBtdXtjA.js";
2
2
  import { trace } from "@opentelemetry/api";
3
3
 
4
4
  //#region src/tracer-provider.ts
package/dist/validate.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_values = require('./values-DApyq53y.cjs');
3
- const require_structured_error = require('./structured-error--_wXpd_C.cjs');
4
- const require_stable_hash = require('./stable-hash-C0pOegH_.cjs');
2
+ const require_values = require('./values-tm4bi0FF.cjs');
3
+ const require_structured_error = require('./structured-error-BAXhglRE.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-BenyvWKz.js";
2
- import { t as createStructuredError } from "./structured-error-YIuka-FE.js";
3
- import { t as hashJson } from "./stable-hash-BkoAYVks.js";
1
+ import { l as asString, s as asRecord } from "./values-xBtdXtjA.js";
2
+ import { t as createStructuredError } from "./structured-error-Y9y-1Pae.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, 'asPlainRecord', {
182
+ Object.defineProperty(exports, 'asPlainRecordOrMap', {
173
183
  enumerable: true,
174
184
  get: function () {
175
- return asPlainRecord;
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, asPlainRecord 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 };
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--_wXpd_C.cjs');
3
- const require_functional = require('./functional-zasLBPyX.cjs');
4
- const require_correlated_events = require('./correlated-events-CcuknWnU.cjs');
2
+ const require_structured_error = require('./structured-error-BAXhglRE.cjs');
3
+ const require_functional = require('./functional-CJI0HCVJ.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
@@ -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,6 +1,6 @@
1
- import { r as recordStructuredError } from "./structured-error-YIuka-FE.js";
2
- import { c as withTracing } from "./functional-BXgTFVTA.js";
3
- import { t as emitCorrelatedEvent } from "./correlated-events-DwMMbItg.js";
1
+ import { r as recordStructuredError } from "./structured-error-Y9y-1Pae.js";
2
+ import { l as withTracing } from "./functional-Cnga_Lnv.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-DApyq53y.cjs');
3
- const require_functional = require('./functional-zasLBPyX.cjs');
4
- const require_correlated_events = require('./correlated-events-CcuknWnU.cjs');
2
+ const require_values = require('./values-tm4bi0FF.cjs');
3
+ const require_functional = require('./functional-CJI0HCVJ.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,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,6 +1,6 @@
1
- import { h as isFunction, x as toError } from "./values-BenyvWKz.js";
2
- import { c as withTracing } from "./functional-BXgTFVTA.js";
3
- import { t as emitCorrelatedEvent } from "./correlated-events-DwMMbItg.js";
1
+ import { h as isFunction, x as toError } from "./values-xBtdXtjA.js";
2
+ import { l as withTracing } from "./functional-Cnga_Lnv.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-DApyq53y.cjs');
4
- const require_functional = require('./functional-zasLBPyX.cjs');
3
+ const require_values = require('./values-tm4bi0FF.cjs');
4
+ const require_functional = require('./functional-CJI0HCVJ.cjs');
5
5
  const require_trace_helpers = require('./trace-helpers.cjs');
6
- const require_correlated_events = require('./correlated-events-CcuknWnU.cjs');
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);
@@ -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,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-BenyvWKz.js";
2
- import { c as withTracing } from "./functional-BXgTFVTA.js";
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-Cnga_Lnv.js";
3
3
  import { getActiveSpan } from "./trace-helpers.js";
4
- import { t as emitCorrelatedEvent } from "./correlated-events-DwMMbItg.js";
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
 
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-OSYC19sK.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-Bst_BhiS.js";
1
+ import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-Dyq6WtsO.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.1",
3
+ "version": "7.7.0",
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",