autotel 7.8.0 → 7.10.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 (158) hide show
  1. package/README.md +14 -0
  2. package/dist/analysis.cjs +1 -1
  3. package/dist/analysis.d.cts +6 -7
  4. package/dist/analysis.d.ts +6 -7
  5. package/dist/analysis.js +1 -1
  6. package/dist/attributes.d.cts +1 -1
  7. package/dist/attributes.d.ts +1 -1
  8. package/dist/auto.cjs +1 -1
  9. package/dist/auto.js +1 -1
  10. package/dist/business-baggage.d.cts +12 -13
  11. package/dist/business-baggage.d.ts +12 -13
  12. package/dist/{canonical-log-line-processor-Bwrt_L4c.d.ts → canonical-log-line-processor-DDGzm-wi.d.ts} +1 -1
  13. package/dist/{canonical-log-line-processor-C0Z_N4oL.d.cts → canonical-log-line-processor-DLeAQjgb.d.cts} +1 -1
  14. package/dist/channel-BobQKsZd.js +64 -0
  15. package/dist/channel-D0eaVqn3.cjs +81 -0
  16. package/dist/config.d.cts +7 -7
  17. package/dist/config.d.ts +7 -7
  18. package/dist/correlation-id.cjs +1 -1
  19. package/dist/correlation-id.d.cts +9 -10
  20. package/dist/correlation-id.d.ts +9 -10
  21. package/dist/correlation-id.js +1 -1
  22. package/dist/db.d.cts +18 -19
  23. package/dist/db.d.ts +18 -19
  24. package/dist/decorators.cjs +1 -1
  25. package/dist/decorators.d.cts +7 -7
  26. package/dist/decorators.d.ts +7 -7
  27. package/dist/decorators.js +1 -1
  28. package/dist/diagnostics.cjs +10 -70
  29. package/dist/diagnostics.d.cts +6 -6
  30. package/dist/diagnostics.d.ts +6 -6
  31. package/dist/diagnostics.js +1 -61
  32. package/dist/drain-pipeline.d.cts +4 -5
  33. package/dist/drain-pipeline.d.ts +4 -5
  34. package/dist/enrichers.d.cts +7 -8
  35. package/dist/enrichers.d.ts +7 -8
  36. package/dist/event.cjs +1 -1
  37. package/dist/event.d.cts +6 -6
  38. package/dist/event.d.ts +6 -6
  39. package/dist/event.js +1 -1
  40. package/dist/evidence.d.cts +13 -14
  41. package/dist/evidence.d.ts +13 -14
  42. package/dist/exception-fingerprint.d.cts +10 -11
  43. package/dist/exception-fingerprint.d.ts +10 -11
  44. package/dist/exporters.d.cts +2 -2
  45. package/dist/exporters.d.ts +2 -2
  46. package/dist/feature-flags.d.cts +23 -24
  47. package/dist/feature-flags.d.ts +23 -24
  48. package/dist/{filtering-span-processor-vkewzbqB.d.ts → filtering-span-processor-BDGe1myy.d.ts} +1 -1
  49. package/dist/{filtering-span-processor-BpDagWNa.d.cts → filtering-span-processor-BYvLMiNz.d.cts} +1 -1
  50. package/dist/filtering-span-processor.cjs +3 -3
  51. package/dist/filtering-span-processor.d.cts +1 -1
  52. package/dist/filtering-span-processor.d.ts +1 -1
  53. package/dist/filtering-span-processor.js +3 -3
  54. package/dist/{functional-SeRUabkE.d.ts → functional-CbcInXMJ.d.ts} +1 -1
  55. package/dist/{functional-u5Qwjray.cjs → functional-CjZT7Jur.cjs} +19 -21
  56. package/dist/{functional-CC2BFGAO.js → functional-DHn-xGtR.js} +21 -23
  57. package/dist/{functional-DPZTpGh6.d.cts → functional-j8Joyrwd.d.cts} +1 -1
  58. package/dist/functional.cjs +1 -1
  59. package/dist/functional.d.cts +1 -1
  60. package/dist/functional.d.ts +1 -1
  61. package/dist/functional.js +1 -1
  62. package/dist/http.cjs +1 -1
  63. package/dist/http.d.cts +6 -7
  64. package/dist/http.d.ts +6 -7
  65. package/dist/http.js +1 -1
  66. package/dist/{index-B9aRLp6c.d.ts → index-DAH41w0W.d.ts} +4 -4
  67. package/dist/{index-8bFU4kmd.d.cts → index-DVPsz3DK.d.cts} +4 -4
  68. package/dist/index.cjs +3 -2
  69. package/dist/index.d.cts +38 -38
  70. package/dist/index.d.ts +38 -38
  71. package/dist/index.js +4 -4
  72. package/dist/{init-COfMwKbc.d.cts → init-BtYaU5n9.d.cts} +18 -4
  73. package/dist/{init-CnoRlJqS.d.ts → init-DUIFqRRS.d.ts} +18 -4
  74. package/dist/{init-8SISAGdE.js → init-rVPOUqng.js} +171 -10
  75. package/dist/{init-21HWbm7_.cjs → init-zb68UvOW.cjs} +180 -6
  76. package/dist/instrumentation.cjs +1 -1
  77. package/dist/instrumentation.d.cts +4 -5
  78. package/dist/instrumentation.d.ts +4 -5
  79. package/dist/instrumentation.js +1 -1
  80. package/dist/{logger-S1Fgl0g3.d.cts → logger-C9UT1aZ_.d.cts} +4 -4
  81. package/dist/{logger-S1Fgl0g3.d.ts → logger-C9UT1aZ_.d.ts} +4 -4
  82. package/dist/logger.d.cts +1 -1
  83. package/dist/logger.d.ts +1 -1
  84. package/dist/messaging-adapters.d.cts +10 -11
  85. package/dist/messaging-adapters.d.ts +10 -11
  86. package/dist/messaging-testing.d.cts +19 -20
  87. package/dist/messaging-testing.d.ts +19 -20
  88. package/dist/messaging.cjs +2 -2
  89. package/dist/messaging.d.cts +23 -24
  90. package/dist/messaging.d.ts +23 -24
  91. package/dist/messaging.js +2 -2
  92. package/dist/metric-helpers.d.cts +6 -7
  93. package/dist/metric-helpers.d.ts +6 -7
  94. package/dist/metric.d.cts +7 -7
  95. package/dist/metric.d.ts +7 -7
  96. package/dist/parse-error.d.cts +3 -4
  97. package/dist/parse-error.d.ts +3 -4
  98. package/dist/policy.cjs +0 -0
  99. package/dist/policy.js +0 -0
  100. package/dist/processors.d.cts +1 -1
  101. package/dist/processors.d.ts +1 -1
  102. package/dist/{sampling-CZi7OM9u.d.ts → sampling-B_8orhSB.d.ts} +1 -1
  103. package/dist/{sampling-DENUjT_8.d.cts → sampling-Dud4XU2m.d.cts} +1 -1
  104. package/dist/sampling.cjs +1 -1
  105. package/dist/sampling.d.cts +1 -1
  106. package/dist/sampling.d.ts +1 -1
  107. package/dist/sampling.js +1 -1
  108. package/dist/security-schema.d.cts +30 -31
  109. package/dist/security-schema.d.ts +30 -31
  110. package/dist/semantic-conventions-yG0X2AsN.d.cts +31 -0
  111. package/dist/semantic-conventions-yG0X2AsN.d.ts +31 -0
  112. package/dist/semantic-conventions.d.cts +1 -1
  113. package/dist/semantic-conventions.d.ts +1 -1
  114. package/dist/semantic-helpers.cjs +1 -1
  115. package/dist/semantic-helpers.d.cts +10 -11
  116. package/dist/semantic-helpers.d.ts +10 -11
  117. package/dist/semantic-helpers.js +1 -1
  118. package/dist/slo.d.cts +12 -13
  119. package/dist/slo.d.ts +12 -13
  120. package/dist/tail-sampling-processor.cjs +1 -1
  121. package/dist/tail-sampling-processor.d.cts +2 -3
  122. package/dist/tail-sampling-processor.d.ts +2 -3
  123. package/dist/tail-sampling-processor.js +1 -1
  124. package/dist/test-span-collector.d.cts +4 -5
  125. package/dist/test-span-collector.d.ts +4 -5
  126. package/dist/testing.d.cts +18 -18
  127. package/dist/testing.d.ts +18 -18
  128. package/dist/trace-helpers.d.cts +15 -16
  129. package/dist/trace-helpers.d.ts +15 -16
  130. package/dist/tracer-provider.cjs +21 -1
  131. package/dist/tracer-provider.d.cts +16 -6
  132. package/dist/tracer-provider.d.ts +16 -6
  133. package/dist/tracer-provider.js +22 -3
  134. package/dist/validate.cjs +8 -7
  135. package/dist/validate.d.cts +12 -12
  136. package/dist/validate.d.ts +12 -12
  137. package/dist/validate.js +8 -7
  138. package/dist/validation-attributes.d.cts +14 -15
  139. package/dist/validation-attributes.d.ts +14 -15
  140. package/dist/webhook.cjs +1 -1
  141. package/dist/webhook.d.cts +11 -12
  142. package/dist/webhook.d.ts +11 -12
  143. package/dist/webhook.js +1 -1
  144. package/dist/workflow-distributed.cjs +1 -1
  145. package/dist/workflow-distributed.d.cts +26 -27
  146. package/dist/workflow-distributed.d.ts +26 -27
  147. package/dist/workflow-distributed.js +1 -1
  148. package/dist/workflow.cjs +1 -1
  149. package/dist/workflow.d.cts +11 -12
  150. package/dist/workflow.d.ts +11 -12
  151. package/dist/workflow.js +1 -1
  152. package/dist/yaml-config.cjs +1 -1
  153. package/dist/yaml-config.d.cts +9 -10
  154. package/dist/yaml-config.d.ts +9 -10
  155. package/dist/yaml-config.js +1 -1
  156. package/package.json +15 -21
  157. package/dist/semantic-conventions-FhSxv-bK.d.cts +0 -31
  158. package/dist/semantic-conventions-FhSxv-bK.d.ts +0 -31
package/README.md CHANGED
@@ -2663,6 +2663,20 @@ export async function handleRequest(req: Request) {
2663
2663
 
2664
2664
  **Key Principle:** All these primitives work together - spans automatically capture context, metrics and events inherit trace IDs, and everything flows through the same configured exporters and adapters. Build what you need, when you need it.
2665
2665
 
2666
+ ## Console Signals
2667
+
2668
+ `init()` listens on Node's `console.*` diagnostics channels (nothing is
2669
+ patched) and records two signals on the active span:
2670
+
2671
+ - `console.error(...)` inside a span → an exception event (the Error argument
2672
+ if there is one, else the formatted message), status untouched because the
2673
+ error was handled. `captureConsoleErrors: false` opts out.
2674
+ - Logging in a loop → one `autotel.LogFlood` exception per trace and template
2675
+ once a template (digits, UUIDs, hex ids collapsed) passes
2676
+ `logFloodThreshold` (default `100`; `0` disables).
2677
+
2678
+ autotel's own `[autotel…]` messages are never recorded.
2679
+
2666
2680
  ## Serverless & Short-lived Processes
2667
2681
 
2668
2682
  A script that finishes and returns gets one flush for free. Autotel listens for
package/dist/analysis.cjs CHANGED
@@ -89,7 +89,7 @@ function compareCohorts(options) {
89
89
  */
90
90
  function bucket(value, boundaries) {
91
91
  if (!Number.isFinite(value) || boundaries.length === 0) return "unknown";
92
- const ordered = [...boundaries].sort((a, b) => a - b);
92
+ const ordered = boundaries.toSorted((a, b) => a - b);
93
93
  for (const [index, boundary] of ordered.entries()) if (value < boundary) {
94
94
  const lower = ordered[index - 1];
95
95
  return lower === void 0 ? `<${boundary}` : `${lower}-${boundary}`;
@@ -28,9 +28,9 @@
28
28
  * ```
29
29
  */
30
30
  /** A flat telemetry record. Span attributes and wide events both satisfy it. */
31
- type AnalysisEvent = Record<string, unknown>;
31
+ export type AnalysisEvent = Record<string, unknown>;
32
32
  /** How strongly one field/value pair separates the outlier group from the baseline. */
33
- interface CohortDifference {
33
+ export interface CohortDifference {
34
34
  /** Attribute name, such as `payment.provider`. */
35
35
  field: string;
36
36
  /** The value, rendered as a string for display and grouping. */
@@ -44,7 +44,7 @@ interface CohortDifference {
44
44
  outlierCount: number;
45
45
  baselineCount: number;
46
46
  }
47
- interface CompareCohortsOptions {
47
+ export interface CompareCohortsOptions {
48
48
  /** The events you are investigating: the errors, the slow requests, the failed checkouts. */
49
49
  outlier: readonly AnalysisEvent[];
50
50
  /** A comparable normal population from the same time range. */
@@ -81,7 +81,7 @@ interface CompareCohortsOptions {
81
81
  * @param options - The two populations and the scan limits
82
82
  * @returns Differences sorted by absolute strength, strongest first
83
83
  */
84
- declare function compareCohorts(options: CompareCohortsOptions): CohortDifference[];
84
+ export declare function compareCohorts(options: CompareCohortsOptions): CohortDifference[];
85
85
  /**
86
86
  * Label a numeric value with the range it falls in.
87
87
  *
@@ -89,6 +89,5 @@ declare function compareCohorts(options: CompareCohortsOptions): CohortDifferenc
89
89
  * raw duration or byte count does. Bucketing at instrumentation time turns
90
90
  * such a field into one that can describe a cohort.
91
91
  */
92
- declare function bucket(value: number, boundaries: readonly number[]): string;
93
- //#endregion
94
- export { AnalysisEvent, CohortDifference, CompareCohortsOptions, bucket, compareCohorts };
92
+ export declare function bucket(value: number, boundaries: readonly number[]): string;
93
+ //#endregion
@@ -28,9 +28,9 @@
28
28
  * ```
29
29
  */
30
30
  /** A flat telemetry record. Span attributes and wide events both satisfy it. */
31
- type AnalysisEvent = Record<string, unknown>;
31
+ export type AnalysisEvent = Record<string, unknown>;
32
32
  /** How strongly one field/value pair separates the outlier group from the baseline. */
33
- interface CohortDifference {
33
+ export interface CohortDifference {
34
34
  /** Attribute name, such as `payment.provider`. */
35
35
  field: string;
36
36
  /** The value, rendered as a string for display and grouping. */
@@ -44,7 +44,7 @@ interface CohortDifference {
44
44
  outlierCount: number;
45
45
  baselineCount: number;
46
46
  }
47
- interface CompareCohortsOptions {
47
+ export interface CompareCohortsOptions {
48
48
  /** The events you are investigating: the errors, the slow requests, the failed checkouts. */
49
49
  outlier: readonly AnalysisEvent[];
50
50
  /** A comparable normal population from the same time range. */
@@ -81,7 +81,7 @@ interface CompareCohortsOptions {
81
81
  * @param options - The two populations and the scan limits
82
82
  * @returns Differences sorted by absolute strength, strongest first
83
83
  */
84
- declare function compareCohorts(options: CompareCohortsOptions): CohortDifference[];
84
+ export declare function compareCohorts(options: CompareCohortsOptions): CohortDifference[];
85
85
  /**
86
86
  * Label a numeric value with the range it falls in.
87
87
  *
@@ -89,6 +89,5 @@ declare function compareCohorts(options: CompareCohortsOptions): CohortDifferenc
89
89
  * raw duration or byte count does. Bucketing at instrumentation time turns
90
90
  * such a field into one that can describe a cohort.
91
91
  */
92
- declare function bucket(value: number, boundaries: readonly number[]): string;
93
- //#endregion
94
- export { AnalysisEvent, CohortDifference, CompareCohortsOptions, bucket, compareCohorts };
92
+ export declare function bucket(value: number, boundaries: readonly number[]): string;
93
+ //#endregion
package/dist/analysis.js CHANGED
@@ -88,7 +88,7 @@ function compareCohorts(options) {
88
88
  */
89
89
  function bucket(value, boundaries) {
90
90
  if (!Number.isFinite(value) || boundaries.length === 0) return "unknown";
91
- const ordered = [...boundaries].sort((a, b) => a - b);
91
+ const ordered = boundaries.toSorted((a, b) => a - b);
92
92
  for (const [index, boundary] of ordered.entries()) if (value < boundary) {
93
93
  const lower = ordered[index - 1];
94
94
  return lower === void 0 ? `<${boundary}` : `${lower}-${boundary}`;
@@ -1,2 +1,2 @@
1
- import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, r as transaction, s as identify, t as mergeAttrs, u as setDevice, v as checkDeprecatedAttribute, w as CodeAttrs, x as attrs, y as defaultGuardrails, z as OTelAttrs } from "./index-8bFU4kmd.cjs";
1
+ import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, r as transaction, s as identify, t as mergeAttrs, u as setDevice, v as checkDeprecatedAttribute, w as CodeAttrs, x as attrs, y as defaultGuardrails, z as OTelAttrs } from "./index-DVPsz3DK.cjs";
2
2
  export { type AttributeGuardrails, type AttributePolicy, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ContainerAttrs, type DBAttrs, type DeploymentAttrs, type DeviceAttrs, type ErrorAttrs, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, type GraphQLAttrs, type HTTPClientAttrs, type HTTPServerAttrs, type K8sAttrs, type MessagingAttrs, type NetworkAttrs, type OTelAttrs, type PeerAttrs, type ProcessAttrs, type RPCAttrs, type ServerAddressAttrs, type ServiceAttrs, type SessionAttrs, type TLSAttrs, type ThreadAttrs, type URLAttrs, type UserAttrs, attrs, autoRedactPII, checkDeprecatedAttribute, dbClient, defaultGuardrails, httpClient, httpServer, identify, mergeAttrs, mergeServiceResource, request, safeSetAttributes, setDevice, setError, setException, setSession, setUser, transaction, validateAttribute };
@@ -1,2 +1,2 @@
1
- import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, r as transaction, s as identify, t as mergeAttrs, u as setDevice, v as checkDeprecatedAttribute, w as CodeAttrs, x as attrs, y as defaultGuardrails, z as OTelAttrs } from "./index-B9aRLp6c.js";
1
+ import { A as ExceptionAttrs, B as PeerAttrs, C as CloudAttrs, D as DeploymentAttrs, E as DBAttrs, F as HTTPServerAttrs, G as SessionAttrs, H as RPCAttrs, I as K8sAttrs, J as URLAttrs, K as TLSAttrs, L as MessagingAttrs, M as FeatureFlagAttrs, N as GraphQLAttrs, O as DeviceAttrs, P as HTTPClientAttrs, R as NetworkAttrs, S as ClientAttrs, T as ContainerAttrs, U as ServerAddressAttrs, V as ProcessAttrs, W as ServiceAttrs, Y as UserAttrs, _ as autoRedactPII, a as httpClient, b as validateAttribute, c as mergeServiceResource, d as setError, f as setException, g as AttributePolicy, h as AttributeGuardrails, i as dbClient, j as FaaSAttrs, k as ErrorAttrs, l as request, m as setUser, n as safeSetAttributes, o as httpServer, p as setSession, q as ThreadAttrs, r as transaction, s as identify, t as mergeAttrs, u as setDevice, v as checkDeprecatedAttribute, w as CodeAttrs, x as attrs, y as defaultGuardrails, z as OTelAttrs } from "./index-DAH41w0W.js";
2
2
  export { type AttributeGuardrails, type AttributePolicy, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ContainerAttrs, type DBAttrs, type DeploymentAttrs, type DeviceAttrs, type ErrorAttrs, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, type GraphQLAttrs, type HTTPClientAttrs, type HTTPServerAttrs, type K8sAttrs, type MessagingAttrs, type NetworkAttrs, type OTelAttrs, type PeerAttrs, type ProcessAttrs, type RPCAttrs, type ServerAddressAttrs, type ServiceAttrs, type SessionAttrs, type TLSAttrs, type ThreadAttrs, type URLAttrs, type UserAttrs, attrs, autoRedactPII, checkDeprecatedAttribute, dbClient, defaultGuardrails, httpClient, httpServer, identify, mergeAttrs, mergeServiceResource, request, safeSetAttributes, setDevice, setError, setException, setSession, setUser, transaction, validateAttribute };
package/dist/auto.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
2
- const require_init = require('./init-21HWbm7_.cjs');
2
+ const require_init = require('./init-zb68UvOW.cjs');
3
3
  let node_module = require("node:module");
4
4
  node_module = require_rolldown_runtime.__toESM(node_module, 1);
5
5
  let import_in_the_middle = require("import-in-the-middle");
package/dist/auto.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as loadYamlConfig, a as init } from "./init-8SISAGdE.js";
1
+ import { _ as loadYamlConfig, a as init } from "./init-rVPOUqng.js";
2
2
  import * as nodeModule from "node:module";
3
3
  import { createAddHookMessageChannel } from "import-in-the-middle";
4
4
 
@@ -3,16 +3,16 @@ import { n as TraceContext } from "./trace-context-f7Xq0Q2q.cjs";
3
3
  /**
4
4
  * Supported field types in baggage schema
5
5
  */
6
- type BaggageFieldType = 'string' | 'number' | 'boolean' | 'enum';
6
+ export type BaggageFieldType = 'string' | 'number' | 'boolean' | 'enum';
7
7
  /**
8
8
  * What a caller may put in a baggage field: one of the scalars baggage can
9
9
  * carry, or nothing - a field left out, or one waiting for its default.
10
10
  */
11
- type BaggageFieldValue = string | number | boolean | null | undefined;
11
+ export type BaggageFieldValue = string | number | boolean | null | undefined;
12
12
  /**
13
13
  * Field definition in a baggage schema
14
14
  */
15
- interface BaggageFieldDefinition {
15
+ export interface BaggageFieldDefinition {
16
16
  /** Field type */
17
17
  type: BaggageFieldType;
18
18
  /** Maximum length for string values (default: 256) */
@@ -31,7 +31,7 @@ interface BaggageFieldDefinition {
31
31
  /**
32
32
  * Options for creating a safe baggage schema
33
33
  */
34
- interface SafeBaggageOptions {
34
+ export interface SafeBaggageOptions {
35
35
  /** Maximum key length (default: 64) */
36
36
  maxKeyLength?: number;
37
37
  /** Maximum value length (default: 256) */
@@ -52,15 +52,15 @@ interface SafeBaggageOptions {
52
52
  /**
53
53
  * Schema definition type - maps field names to definitions
54
54
  */
55
- type BaggageSchemaDefinition = Record<string, BaggageFieldDefinition>;
55
+ export type BaggageSchemaDefinition = Record<string, BaggageFieldDefinition>;
56
56
  /**
57
57
  * Inferred type from schema definition
58
58
  */
59
- type InferBaggageType<T extends BaggageSchemaDefinition> = { [K in keyof T]?: T[K]['type'] extends 'string' ? string : T[K]['type'] extends 'number' ? number : T[K]['type'] extends 'boolean' ? boolean : T[K]['type'] extends 'enum' ? T[K]['values'] extends readonly string[] ? T[K]['values'][number] : string : unknown; };
59
+ export type InferBaggageType<T extends BaggageSchemaDefinition> = { [K in keyof T]?: T[K]['type'] extends 'string' ? string : T[K]['type'] extends 'number' ? number : T[K]['type'] extends 'boolean' ? boolean : T[K]['type'] extends 'enum' ? T[K]['values'] extends readonly string[] ? T[K]['values'][number] : string : unknown; };
60
60
  /**
61
61
  * Baggage error details
62
62
  */
63
- interface BaggageError {
63
+ export interface BaggageError {
64
64
  type: 'validation' | 'size' | 'pii' | 'key_length' | 'value_length';
65
65
  key: string;
66
66
  message: string;
@@ -69,7 +69,7 @@ interface BaggageError {
69
69
  /**
70
70
  * Safe baggage schema interface
71
71
  */
72
- interface SafeBaggageSchema<T extends BaggageSchemaDefinition> {
72
+ export interface SafeBaggageSchema<T extends BaggageSchemaDefinition> {
73
73
  /**
74
74
  * Get baggage values from context
75
75
  */
@@ -116,7 +116,7 @@ interface SafeBaggageSchema<T extends BaggageSchemaDefinition> {
116
116
  * });
117
117
  * ```
118
118
  */
119
- declare function createSafeBaggageSchema<T extends BaggageSchemaDefinition>(schema: T, options?: SafeBaggageOptions): SafeBaggageSchema<T>;
119
+ export declare function createSafeBaggageSchema<T extends BaggageSchemaDefinition>(schema: T, options?: SafeBaggageOptions): SafeBaggageSchema<T>;
120
120
  /**
121
121
  * Pre-built baggage schema for common business context fields
122
122
  *
@@ -145,7 +145,7 @@ declare function createSafeBaggageSchema<T extends BaggageSchemaDefinition>(sche
145
145
  * const { tenantId, priority } = BusinessBaggage.get(ctx);
146
146
  * ```
147
147
  */
148
- declare const BusinessBaggage: SafeBaggageSchema<{
148
+ export declare const BusinessBaggage: SafeBaggageSchema<{
149
149
  tenantId: {
150
150
  type: "string";
151
151
  maxLength: number;
@@ -180,7 +180,7 @@ declare const BusinessBaggage: SafeBaggageSchema<{
180
180
  /**
181
181
  * Type alias for BusinessBaggage values
182
182
  */
183
- type BusinessBaggageValues = {
183
+ export type BusinessBaggageValues = {
184
184
  tenantId?: string;
185
185
  userId?: string;
186
186
  correlationId?: string;
@@ -189,5 +189,4 @@ type BusinessBaggageValues = {
189
189
  region?: string;
190
190
  channel?: 'web' | 'mobile' | 'api' | 'internal' | 'webhook' | 'scheduled';
191
191
  };
192
- //#endregion
193
- export { BaggageError, BaggageFieldDefinition, BaggageFieldType, BaggageFieldValue, BaggageSchemaDefinition, BusinessBaggage, BusinessBaggageValues, InferBaggageType, SafeBaggageOptions, SafeBaggageSchema, createSafeBaggageSchema };
192
+ //#endregion
@@ -3,16 +3,16 @@ import { n as TraceContext } from "./trace-context-CqCblIQE.js";
3
3
  /**
4
4
  * Supported field types in baggage schema
5
5
  */
6
- type BaggageFieldType = 'string' | 'number' | 'boolean' | 'enum';
6
+ export type BaggageFieldType = 'string' | 'number' | 'boolean' | 'enum';
7
7
  /**
8
8
  * What a caller may put in a baggage field: one of the scalars baggage can
9
9
  * carry, or nothing - a field left out, or one waiting for its default.
10
10
  */
11
- type BaggageFieldValue = string | number | boolean | null | undefined;
11
+ export type BaggageFieldValue = string | number | boolean | null | undefined;
12
12
  /**
13
13
  * Field definition in a baggage schema
14
14
  */
15
- interface BaggageFieldDefinition {
15
+ export interface BaggageFieldDefinition {
16
16
  /** Field type */
17
17
  type: BaggageFieldType;
18
18
  /** Maximum length for string values (default: 256) */
@@ -31,7 +31,7 @@ interface BaggageFieldDefinition {
31
31
  /**
32
32
  * Options for creating a safe baggage schema
33
33
  */
34
- interface SafeBaggageOptions {
34
+ export interface SafeBaggageOptions {
35
35
  /** Maximum key length (default: 64) */
36
36
  maxKeyLength?: number;
37
37
  /** Maximum value length (default: 256) */
@@ -52,15 +52,15 @@ interface SafeBaggageOptions {
52
52
  /**
53
53
  * Schema definition type - maps field names to definitions
54
54
  */
55
- type BaggageSchemaDefinition = Record<string, BaggageFieldDefinition>;
55
+ export type BaggageSchemaDefinition = Record<string, BaggageFieldDefinition>;
56
56
  /**
57
57
  * Inferred type from schema definition
58
58
  */
59
- type InferBaggageType<T extends BaggageSchemaDefinition> = { [K in keyof T]?: T[K]['type'] extends 'string' ? string : T[K]['type'] extends 'number' ? number : T[K]['type'] extends 'boolean' ? boolean : T[K]['type'] extends 'enum' ? T[K]['values'] extends readonly string[] ? T[K]['values'][number] : string : unknown; };
59
+ export type InferBaggageType<T extends BaggageSchemaDefinition> = { [K in keyof T]?: T[K]['type'] extends 'string' ? string : T[K]['type'] extends 'number' ? number : T[K]['type'] extends 'boolean' ? boolean : T[K]['type'] extends 'enum' ? T[K]['values'] extends readonly string[] ? T[K]['values'][number] : string : unknown; };
60
60
  /**
61
61
  * Baggage error details
62
62
  */
63
- interface BaggageError {
63
+ export interface BaggageError {
64
64
  type: 'validation' | 'size' | 'pii' | 'key_length' | 'value_length';
65
65
  key: string;
66
66
  message: string;
@@ -69,7 +69,7 @@ interface BaggageError {
69
69
  /**
70
70
  * Safe baggage schema interface
71
71
  */
72
- interface SafeBaggageSchema<T extends BaggageSchemaDefinition> {
72
+ export interface SafeBaggageSchema<T extends BaggageSchemaDefinition> {
73
73
  /**
74
74
  * Get baggage values from context
75
75
  */
@@ -116,7 +116,7 @@ interface SafeBaggageSchema<T extends BaggageSchemaDefinition> {
116
116
  * });
117
117
  * ```
118
118
  */
119
- declare function createSafeBaggageSchema<T extends BaggageSchemaDefinition>(schema: T, options?: SafeBaggageOptions): SafeBaggageSchema<T>;
119
+ export declare function createSafeBaggageSchema<T extends BaggageSchemaDefinition>(schema: T, options?: SafeBaggageOptions): SafeBaggageSchema<T>;
120
120
  /**
121
121
  * Pre-built baggage schema for common business context fields
122
122
  *
@@ -145,7 +145,7 @@ declare function createSafeBaggageSchema<T extends BaggageSchemaDefinition>(sche
145
145
  * const { tenantId, priority } = BusinessBaggage.get(ctx);
146
146
  * ```
147
147
  */
148
- declare const BusinessBaggage: SafeBaggageSchema<{
148
+ export declare const BusinessBaggage: SafeBaggageSchema<{
149
149
  tenantId: {
150
150
  type: "string";
151
151
  maxLength: number;
@@ -180,7 +180,7 @@ declare const BusinessBaggage: SafeBaggageSchema<{
180
180
  /**
181
181
  * Type alias for BusinessBaggage values
182
182
  */
183
- type BusinessBaggageValues = {
183
+ export type BusinessBaggageValues = {
184
184
  tenantId?: string;
185
185
  userId?: string;
186
186
  correlationId?: string;
@@ -189,5 +189,4 @@ type BusinessBaggageValues = {
189
189
  region?: string;
190
190
  channel?: 'web' | 'mobile' | 'api' | 'internal' | 'webhook' | 'scheduled';
191
191
  };
192
- //#endregion
193
- export { BaggageError, BaggageFieldDefinition, BaggageFieldType, BaggageFieldValue, BaggageSchemaDefinition, BusinessBaggage, BusinessBaggageValues, InferBaggageType, SafeBaggageOptions, SafeBaggageSchema, createSafeBaggageSchema };
192
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.js";
2
- import { s as Logger } from "./logger-S1Fgl0g3.js";
2
+ import { s as Logger } from "./logger-C9UT1aZ_.js";
3
3
  import { AttributeValue } from "@opentelemetry/api";
4
4
  import { ReadableSpan, SpanProcessor } from "@opentelemetry/sdk-trace-base";
5
5
  //#region src/processors/canonical-log-line-processor.d.ts
@@ -1,5 +1,5 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.cjs";
2
- import { s as Logger } from "./logger-S1Fgl0g3.cjs";
2
+ import { s as Logger } from "./logger-C9UT1aZ_.cjs";
3
3
  import { ReadableSpan, SpanProcessor } from "@opentelemetry/sdk-trace-base";
4
4
  import { AttributeValue } from "@opentelemetry/api";
5
5
  //#region src/processors/canonical-log-line-processor.d.ts
@@ -0,0 +1,64 @@
1
+ import { n as safeRequire } from "./node-require-CkK_xzL-.js";
2
+
3
+ //#region src/diagnostics/channel.ts
4
+ /**
5
+ * Edge-safe wrappers over Node's `diagnostics_channel`.
6
+ *
7
+ * The module is loaded lazily through {@link safeRequire} — never a static
8
+ * `node:` import — so merely importing this file is side-effect-free and bundles
9
+ * cleanly for browser/edge targets, where every subscribe call degrades to a
10
+ * no-op (returning an unsubscribe that does nothing). This is the shared
11
+ * primitive behind autotel's diagnostics-channel integrations (console capture,
12
+ * HTTP spans) and any app- or library-specific channel you want to bridge into
13
+ * a span/event.
14
+ *
15
+ * `diagnostics_channel.subscribe` (Node 18.7+) and `tracingChannel` (Node 19+)
16
+ * are used; autotel targets Node 22+, but on any runtime that lacks them the
17
+ * loader returns `undefined` and the helpers no-op.
18
+ */
19
+ let cached;
20
+ function loadDiagnosticsChannel() {
21
+ if (cached !== void 0) return cached ?? void 0;
22
+ cached = safeRequire("node:diagnostics_channel") ?? null;
23
+ return cached ?? void 0;
24
+ }
25
+ /** Whether Node's `diagnostics_channel` is available in this runtime. */
26
+ function diagnosticsChannelAvailable() {
27
+ return loadDiagnosticsChannel() !== void 0;
28
+ }
29
+ /**
30
+ * Subscribe to a named diagnostics channel. Returns an idempotent unsubscribe
31
+ * function; a no-op (that still returns a disposer) on unsupported runtimes.
32
+ */
33
+ function subscribeChannel(name, handler) {
34
+ const dc = loadDiagnosticsChannel();
35
+ if (!dc?.subscribe) return () => {};
36
+ const listener = handler;
37
+ dc.subscribe(name, listener);
38
+ let active = true;
39
+ return () => {
40
+ if (!active) return;
41
+ active = false;
42
+ dc.unsubscribe?.(name, listener);
43
+ };
44
+ }
45
+ /**
46
+ * Subscribe to a `tracingChannel` (the `tracing:${name}:{start,end,…}` set).
47
+ * Returns an idempotent unsubscribe; a no-op on runtimes without
48
+ * `tracingChannel` support.
49
+ */
50
+ function subscribeTracingChannel(name, handlers) {
51
+ const channel = loadDiagnosticsChannel()?.tracingChannel?.(name);
52
+ if (!channel) return () => {};
53
+ const subset = handlers;
54
+ channel.subscribe(subset);
55
+ let active = true;
56
+ return () => {
57
+ if (!active) return;
58
+ active = false;
59
+ channel.unsubscribe(subset);
60
+ };
61
+ }
62
+
63
+ //#endregion
64
+ export { subscribeChannel as n, subscribeTracingChannel as r, diagnosticsChannelAvailable as t };
@@ -0,0 +1,81 @@
1
+ const require_node_require = require('./node-require-BPsB09eC.cjs');
2
+
3
+ //#region src/diagnostics/channel.ts
4
+ /**
5
+ * Edge-safe wrappers over Node's `diagnostics_channel`.
6
+ *
7
+ * The module is loaded lazily through {@link safeRequire} — never a static
8
+ * `node:` import — so merely importing this file is side-effect-free and bundles
9
+ * cleanly for browser/edge targets, where every subscribe call degrades to a
10
+ * no-op (returning an unsubscribe that does nothing). This is the shared
11
+ * primitive behind autotel's diagnostics-channel integrations (console capture,
12
+ * HTTP spans) and any app- or library-specific channel you want to bridge into
13
+ * a span/event.
14
+ *
15
+ * `diagnostics_channel.subscribe` (Node 18.7+) and `tracingChannel` (Node 19+)
16
+ * are used; autotel targets Node 22+, but on any runtime that lacks them the
17
+ * loader returns `undefined` and the helpers no-op.
18
+ */
19
+ let cached;
20
+ function loadDiagnosticsChannel() {
21
+ if (cached !== void 0) return cached ?? void 0;
22
+ cached = require_node_require.safeRequire("node:diagnostics_channel") ?? null;
23
+ return cached ?? void 0;
24
+ }
25
+ /** Whether Node's `diagnostics_channel` is available in this runtime. */
26
+ function diagnosticsChannelAvailable() {
27
+ return loadDiagnosticsChannel() !== void 0;
28
+ }
29
+ /**
30
+ * Subscribe to a named diagnostics channel. Returns an idempotent unsubscribe
31
+ * function; a no-op (that still returns a disposer) on unsupported runtimes.
32
+ */
33
+ function subscribeChannel(name, handler) {
34
+ const dc = loadDiagnosticsChannel();
35
+ if (!dc?.subscribe) return () => {};
36
+ const listener = handler;
37
+ dc.subscribe(name, listener);
38
+ let active = true;
39
+ return () => {
40
+ if (!active) return;
41
+ active = false;
42
+ dc.unsubscribe?.(name, listener);
43
+ };
44
+ }
45
+ /**
46
+ * Subscribe to a `tracingChannel` (the `tracing:${name}:{start,end,…}` set).
47
+ * Returns an idempotent unsubscribe; a no-op on runtimes without
48
+ * `tracingChannel` support.
49
+ */
50
+ function subscribeTracingChannel(name, handlers) {
51
+ const channel = loadDiagnosticsChannel()?.tracingChannel?.(name);
52
+ if (!channel) return () => {};
53
+ const subset = handlers;
54
+ channel.subscribe(subset);
55
+ let active = true;
56
+ return () => {
57
+ if (!active) return;
58
+ active = false;
59
+ channel.unsubscribe(subset);
60
+ };
61
+ }
62
+
63
+ //#endregion
64
+ Object.defineProperty(exports, 'diagnosticsChannelAvailable', {
65
+ enumerable: true,
66
+ get: function () {
67
+ return diagnosticsChannelAvailable;
68
+ }
69
+ });
70
+ Object.defineProperty(exports, 'subscribeChannel', {
71
+ enumerable: true,
72
+ get: function () {
73
+ return subscribeChannel;
74
+ }
75
+ });
76
+ Object.defineProperty(exports, 'subscribeTracingChannel', {
77
+ enumerable: true,
78
+ get: function () {
79
+ return subscribeTracingChannel;
80
+ }
81
+ });
package/dist/config.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { t as ILogger } from "./logger-S1Fgl0g3.cjs";
1
+ import { t as ILogger } from "./logger-C9UT1aZ_.cjs";
2
2
  import { Meter, Tracer } from "@opentelemetry/api";
3
3
  //#region src/config.d.ts
4
- declare const FEATURE_FLAGS: {
4
+ export declare const FEATURE_FLAGS: {
5
5
  /** Enable full auto-instrumentation (expensive, production only) */
6
6
  readonly ENABLE_AUTO_INSTRUMENTATION: boolean;
7
7
  /** Enable verbose logging (development only) */
@@ -21,7 +21,7 @@ declare const FEATURE_FLAGS: {
21
21
  * This configures the tracer and meter used by autotel's functional API.
22
22
  * Use `configure()` to set custom tracer/meter instances.
23
23
  */
24
- interface RuntimeConfig {
24
+ export interface RuntimeConfig {
25
25
  /**
26
26
  * Tracer name for OpenTelemetry
27
27
  * @default 'app'
@@ -55,16 +55,16 @@ interface RuntimeConfig {
55
55
  * })
56
56
  * ```
57
57
  */
58
- declare function configure(options: RuntimeConfig): void;
58
+ export declare function configure(options: RuntimeConfig): void;
59
59
  /**
60
60
  * Get current configuration (internal use)
61
61
  */
62
- declare function getConfig(): Required<RuntimeConfig> & {
62
+ export declare function getConfig(): Required<RuntimeConfig> & {
63
63
  featureFlags: typeof FEATURE_FLAGS;
64
64
  };
65
65
  /**
66
66
  * Reset configuration to defaults (internal use - mainly for testing)
67
67
  */
68
- declare function resetConfig(): void;
68
+ export declare function resetConfig(): void;
69
69
  //#endregion
70
- export { FEATURE_FLAGS, type ILogger, RuntimeConfig, configure, getConfig, resetConfig };
70
+ export type { ILogger };
package/dist/config.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { t as ILogger } from "./logger-S1Fgl0g3.js";
1
+ import { t as ILogger } from "./logger-C9UT1aZ_.js";
2
2
  import { Meter, Tracer } from "@opentelemetry/api";
3
3
  //#region src/config.d.ts
4
- declare const FEATURE_FLAGS: {
4
+ export declare const FEATURE_FLAGS: {
5
5
  /** Enable full auto-instrumentation (expensive, production only) */
6
6
  readonly ENABLE_AUTO_INSTRUMENTATION: boolean;
7
7
  /** Enable verbose logging (development only) */
@@ -21,7 +21,7 @@ declare const FEATURE_FLAGS: {
21
21
  * This configures the tracer and meter used by autotel's functional API.
22
22
  * Use `configure()` to set custom tracer/meter instances.
23
23
  */
24
- interface RuntimeConfig {
24
+ export interface RuntimeConfig {
25
25
  /**
26
26
  * Tracer name for OpenTelemetry
27
27
  * @default 'app'
@@ -55,16 +55,16 @@ interface RuntimeConfig {
55
55
  * })
56
56
  * ```
57
57
  */
58
- declare function configure(options: RuntimeConfig): void;
58
+ export declare function configure(options: RuntimeConfig): void;
59
59
  /**
60
60
  * Get current configuration (internal use)
61
61
  */
62
- declare function getConfig(): Required<RuntimeConfig> & {
62
+ export declare function getConfig(): Required<RuntimeConfig> & {
63
63
  featureFlags: typeof FEATURE_FLAGS;
64
64
  };
65
65
  /**
66
66
  * Reset configuration to defaults (internal use - mainly for testing)
67
67
  */
68
- declare function resetConfig(): void;
68
+ export declare function resetConfig(): void;
69
69
  //#endregion
70
- export { FEATURE_FLAGS, type ILogger, RuntimeConfig, configure, getConfig, resetConfig };
70
+ export type { ILogger };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-21HWbm7_.cjs');
2
+ const require_init = require('./init-zb68UvOW.cjs');
3
3
 
4
4
  exports.CORRELATION_ID_BAGGAGE_KEY = require_init.CORRELATION_ID_BAGGAGE_KEY;
5
5
  exports.generateCorrelationId = require_init.generateCorrelationId;
@@ -6,7 +6,7 @@ type CorrelationStore = {
6
6
  /**
7
7
  * Baggage key for correlation ID propagation
8
8
  */
9
- declare const CORRELATION_ID_BAGGAGE_KEY = "autotel.correlation_id";
9
+ export declare const CORRELATION_ID_BAGGAGE_KEY = "autotel.correlation_id";
10
10
  /**
11
11
  * Generate a new correlation ID
12
12
  *
@@ -20,7 +20,7 @@ declare const CORRELATION_ID_BAGGAGE_KEY = "autotel.correlation_id";
20
20
  * // Returns: 'a1b2c3d4e5f67890'
21
21
  * ```
22
22
  */
23
- declare function generateCorrelationId(): string;
23
+ export declare function generateCorrelationId(): string;
24
24
  /**
25
25
  * Get the current correlation ID from context
26
26
  *
@@ -40,7 +40,7 @@ declare function generateCorrelationId(): string;
40
40
  * }
41
41
  * ```
42
42
  */
43
- declare function getCorrelationId(): string | undefined;
43
+ export declare function getCorrelationId(): string | undefined;
44
44
  /**
45
45
  * Get or create a correlation ID
46
46
  *
@@ -55,7 +55,7 @@ declare function getCorrelationId(): string | undefined;
55
55
  * // Always returns a valid correlation ID
56
56
  * ```
57
57
  */
58
- declare function getOrCreateCorrelationId(): string;
58
+ export declare function getOrCreateCorrelationId(): string;
59
59
  /**
60
60
  * Run a function with a specific correlation ID in context
61
61
  *
@@ -74,7 +74,7 @@ declare function getOrCreateCorrelationId(): string;
74
74
  * });
75
75
  * ```
76
76
  */
77
- declare function runWithCorrelationId<T>(correlationId: string, fn: () => T): T;
77
+ export declare function runWithCorrelationId<T>(correlationId: string, fn: () => T): T;
78
78
  /**
79
79
  * Set correlation ID in the current context (mutates context)
80
80
  *
@@ -89,7 +89,7 @@ declare function runWithCorrelationId<T>(correlationId: string, fn: () => T): T;
89
89
  * // Now getCorrelationId() returns 'abc123'
90
90
  * ```
91
91
  */
92
- declare function setCorrelationId(correlationId: string): void;
92
+ export declare function setCorrelationId(correlationId: string): void;
93
93
  /**
94
94
  * Set correlation ID in baggage for propagation
95
95
  *
@@ -110,10 +110,9 @@ declare function setCorrelationId(correlationId: string): void;
110
110
  * });
111
111
  * ```
112
112
  */
113
- declare function setCorrelationIdInBaggage(correlationId: string): import('@opentelemetry/api').Context;
113
+ export declare function setCorrelationIdInBaggage(correlationId: string): import('@opentelemetry/api').Context;
114
114
  /**
115
115
  * Get the correlation storage instance (for internal use in init/shutdown)
116
116
  */
117
- declare function getCorrelationStorage(): AsyncLocalStorage<CorrelationStore>;
118
- //#endregion
119
- export { CORRELATION_ID_BAGGAGE_KEY, generateCorrelationId, getCorrelationId, getCorrelationStorage, getOrCreateCorrelationId, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage };
117
+ export declare function getCorrelationStorage(): AsyncLocalStorage<CorrelationStore>;
118
+ //#endregion