autotel 7.9.0 → 7.10.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 (158) hide show
  1. package/README.md +16 -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-6QPJDqUW.js → functional-C4gGiBou.js} +14 -9
  55. package/dist/{functional-SeRUabkE.d.ts → functional-CbcInXMJ.d.ts} +1 -1
  56. package/dist/{functional-DxHvvWc_.cjs → functional-DptEM9La.cjs} +14 -9
  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-CnoRlJqS.d.ts → init-Biyby8Br.d.ts} +21 -5
  73. package/dist/{init-C-qfxo_u.js → init-BvUtwZNx.js} +104 -14
  74. package/dist/{init-COfMwKbc.d.cts → init-CHanKvOq.d.cts} +21 -5
  75. package/dist/{init-W_klPrYk.cjs → init-Cx1-ejLn.cjs} +108 -17
  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
@@ -1,24 +1,23 @@
1
1
  //#region src/enrichers.d.ts
2
2
  type Headers = Record<string, string | string[] | undefined>;
3
- interface UserAgentAttributes {
3
+ export interface UserAgentAttributes {
4
4
  'user_agent.raw': string;
5
5
  'user_agent.browser'?: string;
6
6
  'user_agent.os'?: string;
7
7
  'user_agent.device'?: string;
8
8
  }
9
- declare function userAgent(headers: Headers): UserAgentAttributes | undefined;
10
- interface GeoAttributes {
9
+ export declare function userAgent(headers: Headers): UserAgentAttributes | undefined;
10
+ export interface GeoAttributes {
11
11
  'geo.country'?: string;
12
12
  'geo.region'?: string;
13
13
  'geo.city'?: string;
14
14
  'geo.latitude'?: string;
15
15
  'geo.longitude'?: string;
16
16
  }
17
- declare function geo(headers: Headers): GeoAttributes | undefined;
18
- interface RequestSizeAttributes {
17
+ export declare function geo(headers: Headers): GeoAttributes | undefined;
18
+ export interface RequestSizeAttributes {
19
19
  'http.request.body.size'?: number;
20
20
  'http.response.body.size'?: number;
21
21
  }
22
- declare function requestSize(requestHeaders: Headers, responseHeaders?: Headers): RequestSizeAttributes | undefined;
23
- //#endregion
24
- export { GeoAttributes, RequestSizeAttributes, UserAgentAttributes, geo, requestSize, userAgent };
22
+ export declare function requestSize(requestHeaders: Headers, responseHeaders?: Headers): RequestSizeAttributes | undefined;
23
+ //#endregion
@@ -1,24 +1,23 @@
1
1
  //#region src/enrichers.d.ts
2
2
  type Headers = Record<string, string | string[] | undefined>;
3
- interface UserAgentAttributes {
3
+ export interface UserAgentAttributes {
4
4
  'user_agent.raw': string;
5
5
  'user_agent.browser'?: string;
6
6
  'user_agent.os'?: string;
7
7
  'user_agent.device'?: string;
8
8
  }
9
- declare function userAgent(headers: Headers): UserAgentAttributes | undefined;
10
- interface GeoAttributes {
9
+ export declare function userAgent(headers: Headers): UserAgentAttributes | undefined;
10
+ export interface GeoAttributes {
11
11
  'geo.country'?: string;
12
12
  'geo.region'?: string;
13
13
  'geo.city'?: string;
14
14
  'geo.latitude'?: string;
15
15
  'geo.longitude'?: string;
16
16
  }
17
- declare function geo(headers: Headers): GeoAttributes | undefined;
18
- interface RequestSizeAttributes {
17
+ export declare function geo(headers: Headers): GeoAttributes | undefined;
18
+ export interface RequestSizeAttributes {
19
19
  'http.request.body.size'?: number;
20
20
  'http.response.body.size'?: number;
21
21
  }
22
- declare function requestSize(requestHeaders: Headers, responseHeaders?: Headers): RequestSizeAttributes | undefined;
23
- //#endregion
24
- export { GeoAttributes, RequestSizeAttributes, UserAgentAttributes, geo, requestSize, userAgent };
22
+ export declare function requestSize(requestHeaders: Headers, responseHeaders?: Headers): RequestSizeAttributes | undefined;
23
+ //#endregion
package/dist/event.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-W_klPrYk.cjs');
2
+ const require_init = require('./init-Cx1-ejLn.cjs');
3
3
 
4
4
  exports.Event = require_init.Event;
5
5
  exports.getEvents = require_init.getEvents;
package/dist/event.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { s as Logger } from "./logger-S1Fgl0g3.cjs";
1
+ import { s as Logger } from "./logger-C9UT1aZ_.cjs";
2
2
  import { c as FunnelStatus, i as EventAttributesInput, l as OutcomeStatus, o as EventSubscriber, r as EventAttributes } from "./event-subscriber-DMACQA-1.cjs";
3
3
  import { t as EventCollector } from "./event-testing-CBtnJXE5.cjs";
4
4
  //#region src/event.d.ts
@@ -17,7 +17,7 @@ import { t as EventCollector } from "./event-testing-CBtnJXE5.cjs";
17
17
  /**
18
18
  * Events options
19
19
  */
20
- interface EventsOptions {
20
+ export interface EventsOptions {
21
21
  /** Optional logger for audit trail */
22
22
  logger?: Logger;
23
23
  /** Optional collector for testing (captures events in memory) */
@@ -35,7 +35,7 @@ interface EventsOptions {
35
35
  */
36
36
  subscribers?: EventSubscriber[];
37
37
  }
38
- declare class Event {
38
+ export declare class Event {
39
39
  private serviceName;
40
40
  private logger?;
41
41
  private collector?;
@@ -322,10 +322,10 @@ declare class Event {
322
322
  * events.trackEvent('application.submitted', { jobId: '123' })
323
323
  * ```
324
324
  */
325
- declare function getEvents(serviceName: string, logger?: Logger): Event;
325
+ export declare function getEvents(serviceName: string, logger?: Logger): Event;
326
326
  /**
327
327
  * Reset all events instances (mainly for testing)
328
328
  */
329
- declare function resetEvents(): void;
329
+ export declare function resetEvents(): void;
330
330
  //#endregion
331
- export { Event, type EventAttributes, type EventAttributesInput, EventsOptions, type FunnelStatus, type OutcomeStatus, getEvents, resetEvents };
331
+ export type { EventAttributes, EventAttributesInput, FunnelStatus, OutcomeStatus };
package/dist/event.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { s as Logger } from "./logger-S1Fgl0g3.js";
1
+ import { s as Logger } from "./logger-C9UT1aZ_.js";
2
2
  import { c as FunnelStatus, i as EventAttributesInput, l as OutcomeStatus, o as EventSubscriber, r as EventAttributes } from "./event-subscriber-DMACQA-1.js";
3
3
  import { t as EventCollector } from "./event-testing-CkPgV3Ii.js";
4
4
  //#region src/event.d.ts
@@ -17,7 +17,7 @@ import { t as EventCollector } from "./event-testing-CkPgV3Ii.js";
17
17
  /**
18
18
  * Events options
19
19
  */
20
- interface EventsOptions {
20
+ export interface EventsOptions {
21
21
  /** Optional logger for audit trail */
22
22
  logger?: Logger;
23
23
  /** Optional collector for testing (captures events in memory) */
@@ -35,7 +35,7 @@ interface EventsOptions {
35
35
  */
36
36
  subscribers?: EventSubscriber[];
37
37
  }
38
- declare class Event {
38
+ export declare class Event {
39
39
  private serviceName;
40
40
  private logger?;
41
41
  private collector?;
@@ -322,10 +322,10 @@ declare class Event {
322
322
  * events.trackEvent('application.submitted', { jobId: '123' })
323
323
  * ```
324
324
  */
325
- declare function getEvents(serviceName: string, logger?: Logger): Event;
325
+ export declare function getEvents(serviceName: string, logger?: Logger): Event;
326
326
  /**
327
327
  * Reset all events instances (mainly for testing)
328
328
  */
329
- declare function resetEvents(): void;
329
+ export declare function resetEvents(): void;
330
330
  //#endregion
331
- export { Event, type EventAttributes, type EventAttributesInput, EventsOptions, type FunnelStatus, type OutcomeStatus, getEvents, resetEvents };
331
+ export type { EventAttributes, EventAttributesInput, FunnelStatus, OutcomeStatus };
package/dist/event.js CHANGED
@@ -1,3 +1,3 @@
1
- import { d as Event, f as getEvents, p as resetEvents } from "./init-C-qfxo_u.js";
1
+ import { d as Event, f as getEvents, p as resetEvents } from "./init-BvUtwZNx.js";
2
2
 
3
3
  export { Event, getEvents, resetEvents };
@@ -7,7 +7,7 @@ import { Attributes } from "@opentelemetry/api";
7
7
  * is already unknown, and encoding that as a value invites code that treats an
8
8
  * unlabelled field as *verified* unknown rather than simply unexamined.
9
9
  */
10
- type EvidenceQuality =
10
+ export type EvidenceQuality =
11
11
  /** The instrumentation saw the value directly. */
12
12
  'observed' |
13
13
  /** Derived from other observed facts, not seen. */
@@ -23,30 +23,30 @@ type EvidenceQuality =
23
23
  /** This process cannot see it at all, so its absence proves nothing. */
24
24
  'unobservable';
25
25
  /** Prefix for per-field evidence labels. */
26
- declare const EVIDENCE_ATTR_PREFIX = "autotel.evidence.";
26
+ export declare const EVIDENCE_ATTR_PREFIX = "autotel.evidence.";
27
27
  /** The span attribute key carrying `field`'s evidence label. */
28
- declare function evidenceAttribute(field: string): string;
28
+ export declare function evidenceAttribute(field: string): string;
29
29
  /** The one thing {@link recordEvidence} needs — any `TraceContext` or `Span`. */
30
- interface EvidenceTarget {
30
+ export interface EvidenceTarget {
31
31
  setAttribute(key: string, value: string): void;
32
32
  }
33
33
  /** Label how `field` on this span came to be. */
34
- declare function recordEvidence(ctx: EvidenceTarget, field: string, quality: EvidenceQuality): void;
34
+ export declare function recordEvidence(ctx: EvidenceTarget, field: string, quality: EvidenceQuality): void;
35
35
  /**
36
36
  * The capture surfaces a deployment can be asked about. Closed set, because the
37
37
  * point is that a backend can query `unobserved` across services and get
38
38
  * comparable answers.
39
39
  */
40
- declare const CAPTURE_SURFACES: readonly ["llm_calls", "tool_calls", "user_prompts", "file_io", "subprocess", "network", "ide_context"];
41
- type CaptureSurface = (typeof CAPTURE_SURFACES)[number];
40
+ export declare const CAPTURE_SURFACES: readonly ['llm_calls', 'tool_calls', 'user_prompts', 'file_io', 'subprocess', 'network', 'ide_context'];
41
+ export type CaptureSurface = (typeof CAPTURE_SURFACES)[number];
42
42
  /** What this process can and cannot see. Anything in neither list is unknown. */
43
- interface CaptureCoverage {
43
+ export interface CaptureCoverage {
44
44
  observed: readonly CaptureSurface[];
45
45
  unobserved: readonly CaptureSurface[];
46
46
  }
47
- declare const CAPTURE_COVERAGE_ATTR: {
48
- readonly observed: "autotel.coverage.observed";
49
- readonly unobserved: "autotel.coverage.unobserved";
47
+ export declare const CAPTURE_COVERAGE_ATTR: {
48
+ readonly observed: 'autotel.coverage.observed';
49
+ readonly unobserved: 'autotel.coverage.unobserved';
50
50
  };
51
51
  /**
52
52
  * Resource attributes declaring {@link CaptureCoverage}.
@@ -56,6 +56,5 @@ declare const CAPTURE_COVERAGE_ATTR: {
56
56
  * nothing. A surface claimed as both is dropped from both — a contradiction
57
57
  * that left `observed` intact would let a reader conclude a gap does not exist.
58
58
  */
59
- declare function captureCoverageAttributes(coverage: CaptureCoverage): Attributes;
60
- //#endregion
61
- export { CAPTURE_COVERAGE_ATTR, CAPTURE_SURFACES, CaptureCoverage, CaptureSurface, EVIDENCE_ATTR_PREFIX, EvidenceQuality, EvidenceTarget, captureCoverageAttributes, evidenceAttribute, recordEvidence };
59
+ export declare function captureCoverageAttributes(coverage: CaptureCoverage): Attributes;
60
+ //#endregion
@@ -7,7 +7,7 @@ import { Attributes } from "@opentelemetry/api";
7
7
  * is already unknown, and encoding that as a value invites code that treats an
8
8
  * unlabelled field as *verified* unknown rather than simply unexamined.
9
9
  */
10
- type EvidenceQuality =
10
+ export type EvidenceQuality =
11
11
  /** The instrumentation saw the value directly. */
12
12
  'observed' |
13
13
  /** Derived from other observed facts, not seen. */
@@ -23,30 +23,30 @@ type EvidenceQuality =
23
23
  /** This process cannot see it at all, so its absence proves nothing. */
24
24
  'unobservable';
25
25
  /** Prefix for per-field evidence labels. */
26
- declare const EVIDENCE_ATTR_PREFIX = "autotel.evidence.";
26
+ export declare const EVIDENCE_ATTR_PREFIX = "autotel.evidence.";
27
27
  /** The span attribute key carrying `field`'s evidence label. */
28
- declare function evidenceAttribute(field: string): string;
28
+ export declare function evidenceAttribute(field: string): string;
29
29
  /** The one thing {@link recordEvidence} needs — any `TraceContext` or `Span`. */
30
- interface EvidenceTarget {
30
+ export interface EvidenceTarget {
31
31
  setAttribute(key: string, value: string): void;
32
32
  }
33
33
  /** Label how `field` on this span came to be. */
34
- declare function recordEvidence(ctx: EvidenceTarget, field: string, quality: EvidenceQuality): void;
34
+ export declare function recordEvidence(ctx: EvidenceTarget, field: string, quality: EvidenceQuality): void;
35
35
  /**
36
36
  * The capture surfaces a deployment can be asked about. Closed set, because the
37
37
  * point is that a backend can query `unobserved` across services and get
38
38
  * comparable answers.
39
39
  */
40
- declare const CAPTURE_SURFACES: readonly ["llm_calls", "tool_calls", "user_prompts", "file_io", "subprocess", "network", "ide_context"];
41
- type CaptureSurface = (typeof CAPTURE_SURFACES)[number];
40
+ export declare const CAPTURE_SURFACES: readonly ['llm_calls', 'tool_calls', 'user_prompts', 'file_io', 'subprocess', 'network', 'ide_context'];
41
+ export type CaptureSurface = (typeof CAPTURE_SURFACES)[number];
42
42
  /** What this process can and cannot see. Anything in neither list is unknown. */
43
- interface CaptureCoverage {
43
+ export interface CaptureCoverage {
44
44
  observed: readonly CaptureSurface[];
45
45
  unobserved: readonly CaptureSurface[];
46
46
  }
47
- declare const CAPTURE_COVERAGE_ATTR: {
48
- readonly observed: "autotel.coverage.observed";
49
- readonly unobserved: "autotel.coverage.unobserved";
47
+ export declare const CAPTURE_COVERAGE_ATTR: {
48
+ readonly observed: 'autotel.coverage.observed';
49
+ readonly unobserved: 'autotel.coverage.unobserved';
50
50
  };
51
51
  /**
52
52
  * Resource attributes declaring {@link CaptureCoverage}.
@@ -56,6 +56,5 @@ declare const CAPTURE_COVERAGE_ATTR: {
56
56
  * nothing. A surface claimed as both is dropped from both — a contradiction
57
57
  * that left `observed` intact would let a reader conclude a gap does not exist.
58
58
  */
59
- declare function captureCoverageAttributes(coverage: CaptureCoverage): Attributes;
60
- //#endregion
61
- export { CAPTURE_COVERAGE_ATTR, CAPTURE_SURFACES, CaptureCoverage, CaptureSurface, EVIDENCE_ATTR_PREFIX, EvidenceQuality, EvidenceTarget, captureCoverageAttributes, evidenceAttribute, recordEvidence };
59
+ export declare function captureCoverageAttributes(coverage: CaptureCoverage): Attributes;
60
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { SpanProcessor } from "@opentelemetry/sdk-trace-base";
2
2
  //#region src/exception-fingerprint.d.ts
3
3
  /** Attribute the fingerprint is written to. */
4
- declare const EXCEPTION_FINGERPRINT_ATTRIBUTE = "exception.fingerprint";
5
- interface ExceptionInput {
4
+ export declare const EXCEPTION_FINGERPRINT_ATTRIBUTE = "exception.fingerprint";
5
+ export interface ExceptionInput {
6
6
  /** Error class name, e.g. `TypeError`. Defaults to `Error`. */
7
7
  type?: string;
8
8
  /** Error message. Only used for grouping when there is no usable stack. */
@@ -16,25 +16,25 @@ interface ExceptionInput {
16
16
  * becomes the project-relative one. Without this, the same error fingerprints
17
17
  * differently in CI, in Docker, and on a laptop.
18
18
  */
19
- declare function normalizeFilePath(filePath: string): string;
19
+ export declare function normalizeFilePath(filePath: string): string;
20
20
  /**
21
21
  * Strip the parts of a message that change on every occurrence, so
22
22
  * `timeout after 341ms` and `timeout after 78ms` are one issue rather than two.
23
23
  */
24
- declare function normalizeMessage(message: string): string;
24
+ export declare function normalizeMessage(message: string): string;
25
25
  /**
26
26
  * `function@normalized-path` for the top N frames. Line and column are
27
27
  * deliberately dropped: an edit one line above the throw is the same bug.
28
28
  */
29
- declare function normalizeStackFrames(stack: string, count: number): string[];
29
+ export declare function normalizeStackFrames(stack: string, count: number): string[];
30
30
  /** 32-bit djb2-style hash, rendered as 8 hex characters. */
31
- declare function hashFingerprintParts(parts: string[]): string;
31
+ export declare function hashFingerprintParts(parts: string[]): string;
32
32
  /**
33
33
  * Group key for an exception. Returns `undefined` when there is nothing to
34
34
  * group on, so callers never write an attribute that means "no information".
35
35
  */
36
- declare function fingerprintException(input: ExceptionInput, frames?: number): string | undefined;
37
- interface ExceptionFingerprintOptions {
36
+ export declare function fingerprintException(input: ExceptionInput, frames?: number): string | undefined;
37
+ export interface ExceptionFingerprintOptions {
38
38
  /** Stack frames to fingerprint on. @default 5 */
39
39
  frames?: number;
40
40
  }
@@ -46,6 +46,5 @@ interface ExceptionFingerprintOptions {
46
46
  * enrichers add to the pipeline instead of replacing it, and sit outside the
47
47
  * redaction wrapper so the attribute reaches every exporter.
48
48
  */
49
- declare function exceptionFingerprint(options?: ExceptionFingerprintOptions): SpanProcessor;
50
- //#endregion
51
- export { EXCEPTION_FINGERPRINT_ATTRIBUTE, ExceptionFingerprintOptions, ExceptionInput, exceptionFingerprint, fingerprintException, hashFingerprintParts, normalizeFilePath, normalizeMessage, normalizeStackFrames };
49
+ export declare function exceptionFingerprint(options?: ExceptionFingerprintOptions): SpanProcessor;
50
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { SpanProcessor } from "@opentelemetry/sdk-trace-base";
2
2
  //#region src/exception-fingerprint.d.ts
3
3
  /** Attribute the fingerprint is written to. */
4
- declare const EXCEPTION_FINGERPRINT_ATTRIBUTE = "exception.fingerprint";
5
- interface ExceptionInput {
4
+ export declare const EXCEPTION_FINGERPRINT_ATTRIBUTE = "exception.fingerprint";
5
+ export interface ExceptionInput {
6
6
  /** Error class name, e.g. `TypeError`. Defaults to `Error`. */
7
7
  type?: string;
8
8
  /** Error message. Only used for grouping when there is no usable stack. */
@@ -16,25 +16,25 @@ interface ExceptionInput {
16
16
  * becomes the project-relative one. Without this, the same error fingerprints
17
17
  * differently in CI, in Docker, and on a laptop.
18
18
  */
19
- declare function normalizeFilePath(filePath: string): string;
19
+ export declare function normalizeFilePath(filePath: string): string;
20
20
  /**
21
21
  * Strip the parts of a message that change on every occurrence, so
22
22
  * `timeout after 341ms` and `timeout after 78ms` are one issue rather than two.
23
23
  */
24
- declare function normalizeMessage(message: string): string;
24
+ export declare function normalizeMessage(message: string): string;
25
25
  /**
26
26
  * `function@normalized-path` for the top N frames. Line and column are
27
27
  * deliberately dropped: an edit one line above the throw is the same bug.
28
28
  */
29
- declare function normalizeStackFrames(stack: string, count: number): string[];
29
+ export declare function normalizeStackFrames(stack: string, count: number): string[];
30
30
  /** 32-bit djb2-style hash, rendered as 8 hex characters. */
31
- declare function hashFingerprintParts(parts: string[]): string;
31
+ export declare function hashFingerprintParts(parts: string[]): string;
32
32
  /**
33
33
  * Group key for an exception. Returns `undefined` when there is nothing to
34
34
  * group on, so callers never write an attribute that means "no information".
35
35
  */
36
- declare function fingerprintException(input: ExceptionInput, frames?: number): string | undefined;
37
- interface ExceptionFingerprintOptions {
36
+ export declare function fingerprintException(input: ExceptionInput, frames?: number): string | undefined;
37
+ export interface ExceptionFingerprintOptions {
38
38
  /** Stack frames to fingerprint on. @default 5 */
39
39
  frames?: number;
40
40
  }
@@ -46,6 +46,5 @@ interface ExceptionFingerprintOptions {
46
46
  * enrichers add to the pipeline instead of replacing it, and sit outside the
47
47
  * redaction wrapper so the attribute reaches every exporter.
48
48
  */
49
- declare function exceptionFingerprint(options?: ExceptionFingerprintOptions): SpanProcessor;
50
- //#endregion
51
- export { EXCEPTION_FINGERPRINT_ATTRIBUTE, ExceptionFingerprintOptions, ExceptionInput, exceptionFingerprint, fingerprintException, hashFingerprintParts, normalizeFilePath, normalizeMessage, normalizeStackFrames };
49
+ export declare function exceptionFingerprint(options?: ExceptionFingerprintOptions): SpanProcessor;
50
+ //#endregion
@@ -52,7 +52,7 @@ interface PrettyConsoleExporterOptions {
52
52
  * - Attribute display with truncation
53
53
  * - Error message highlighting
54
54
  */
55
- declare class PrettyConsoleExporter implements SpanExporter {
55
+ export declare class PrettyConsoleExporter implements SpanExporter {
56
56
  private readonly options;
57
57
  constructor(options?: PrettyConsoleExporterOptions);
58
58
  /**
@@ -101,4 +101,4 @@ declare class PrettyConsoleExporter implements SpanExporter {
101
101
  forceFlush(): Promise<void>;
102
102
  }
103
103
  //#endregion
104
- export { ConsoleSpanExporter, InMemorySpanExporter, PrettyConsoleExporter, type PrettyConsoleExporterOptions };
104
+ export { ConsoleSpanExporter, InMemorySpanExporter, type PrettyConsoleExporterOptions };
@@ -52,7 +52,7 @@ interface PrettyConsoleExporterOptions {
52
52
  * - Attribute display with truncation
53
53
  * - Error message highlighting
54
54
  */
55
- declare class PrettyConsoleExporter implements SpanExporter {
55
+ export declare class PrettyConsoleExporter implements SpanExporter {
56
56
  private readonly options;
57
57
  constructor(options?: PrettyConsoleExporterOptions);
58
58
  /**
@@ -101,4 +101,4 @@ declare class PrettyConsoleExporter implements SpanExporter {
101
101
  forceFlush(): Promise<void>;
102
102
  }
103
103
  //#endregion
104
- export { ConsoleSpanExporter, InMemorySpanExporter, PrettyConsoleExporter, type PrettyConsoleExporterOptions };
104
+ export { ConsoleSpanExporter, InMemorySpanExporter, type PrettyConsoleExporterOptions };
@@ -29,32 +29,32 @@
29
29
  * branch on is the one that explains its behaviour.
30
30
  */
31
31
  /** Canonical `feature_flag.*` attribute keys. */
32
- declare const FEATURE_FLAG: {
33
- readonly KEY: "feature_flag.key";
34
- readonly RESULT_VALUE: "feature_flag.result.value";
35
- readonly RESULT_VARIANT: "feature_flag.result.variant";
36
- readonly RESULT_REASON: "feature_flag.result.reason";
37
- readonly PROVIDER_NAME: "feature_flag.provider.name";
38
- readonly CONTEXT_ID: "feature_flag.context.id";
39
- readonly SET_ID: "feature_flag.set.id";
40
- readonly VERSION: "feature_flag.version";
32
+ export declare const FEATURE_FLAG: {
33
+ readonly KEY: 'feature_flag.key';
34
+ readonly RESULT_VALUE: 'feature_flag.result.value';
35
+ readonly RESULT_VARIANT: 'feature_flag.result.variant';
36
+ readonly RESULT_REASON: 'feature_flag.result.reason';
37
+ readonly PROVIDER_NAME: 'feature_flag.provider.name';
38
+ readonly CONTEXT_ID: 'feature_flag.context.id';
39
+ readonly SET_ID: 'feature_flag.set.id';
40
+ readonly VERSION: 'feature_flag.version';
41
41
  /**
42
42
  * Why an evaluation failed. `feature_flag.evaluation.error.message` is the
43
43
  * deprecated spelling of this and is deliberately not emitted — writing both
44
44
  * would double the cardinality to no benefit.
45
45
  */
46
- readonly ERROR_MESSAGE: "feature_flag.error.message";
46
+ readonly ERROR_MESSAGE: 'feature_flag.error.message';
47
47
  };
48
48
  /** Canonical event name for one evaluation. */
49
- declare const FEATURE_FLAG_EVALUATION_EVENT = "feature_flag.evaluation";
49
+ export declare const FEATURE_FLAG_EVALUATION_EVENT = "feature_flag.evaluation";
50
50
  /**
51
51
  * Canonical `feature_flag.result.reason` values. The registry defines them in
52
52
  * lower snake case; OpenFeature and most SDKs report them upper-cased, and
53
53
  * forwarding that splits every group-by into two buckets meaning the same
54
54
  * thing.
55
55
  */
56
- declare const FEATURE_FLAG_REASON: readonly ["static", "default", "targeting_match", "split", "cached", "disabled", "unknown", "stale", "error"];
57
- interface FeatureFlagEvaluation {
56
+ export declare const FEATURE_FLAG_REASON: readonly ['static', 'default', 'targeting_match', 'split', 'cached', 'disabled', 'unknown', 'stale', 'error'];
57
+ export interface FeatureFlagEvaluation {
58
58
  /** The flag's key, e.g. `new-checkout`. */
59
59
  key: string;
60
60
  /** The value the code branched on. Serialised if it is not a string. */
@@ -79,7 +79,7 @@ interface FeatureFlagEvaluation {
79
79
  errorMessage?: string;
80
80
  }
81
81
  /** What an attribute can hold without being flattened to text. */
82
- type FeatureFlagAttributeValue = string | number | boolean;
82
+ export type FeatureFlagAttributeValue = string | number | boolean;
83
83
  /**
84
84
  * The smallest thing that can carry an evaluation.
85
85
  *
@@ -92,12 +92,12 @@ type FeatureFlagAttributeValue = string | number | boolean;
92
92
  * A sink with no `track` still records the attributes, which covers the common
93
93
  * single-flag span.
94
94
  */
95
- interface FeatureFlagSink {
95
+ export interface FeatureFlagSink {
96
96
  setAttributes(attributes: Record<string, FeatureFlagAttributeValue>): void;
97
97
  track?(name: string, attributes?: Record<string, FeatureFlagAttributeValue>): void;
98
98
  }
99
99
  /** Canonical attributes for one evaluation. Absent fields are omitted. */
100
- declare function featureFlagAttributes(evaluation: FeatureFlagEvaluation): Record<string, FeatureFlagAttributeValue>;
100
+ export declare function featureFlagAttributes(evaluation: FeatureFlagEvaluation): Record<string, FeatureFlagAttributeValue>;
101
101
  /**
102
102
  * Record a flag evaluation on `sink` — as attributes and as a
103
103
  * `feature_flag.evaluation` event.
@@ -105,7 +105,7 @@ declare function featureFlagAttributes(evaluation: FeatureFlagEvaluation): Recor
105
105
  * A missing sink is a no-op: instrumentation must never be the reason a branch
106
106
  * throws, and a flag read outside any span is a legitimate thing to do.
107
107
  */
108
- declare function recordFeatureFlag(sink: FeatureFlagSink | undefined, evaluation: FeatureFlagEvaluation): void;
108
+ export declare function recordFeatureFlag(sink: FeatureFlagSink | undefined, evaluation: FeatureFlagEvaluation): void;
109
109
  /**
110
110
  * The parts of an OpenFeature hook context this reads. Structurally typed on
111
111
  * purpose: matching the shape rather than importing `@openfeature/server-sdk`
@@ -113,7 +113,7 @@ declare function recordFeatureFlag(sink: FeatureFlagSink | undefined, evaluation
113
113
  * works against the web SDK, the server SDK and the React one alike — they
114
114
  * agree on this shape and disagree on almost everything else.
115
115
  */
116
- interface OpenFeatureHookContext {
116
+ export interface OpenFeatureHookContext {
117
117
  flagKey: string;
118
118
  defaultValue: unknown;
119
119
  context?: {
@@ -127,17 +127,17 @@ interface OpenFeatureHookContext {
127
127
  };
128
128
  }
129
129
  /** The evaluation result an OpenFeature hook receives. */
130
- interface OpenFeatureEvaluationDetails {
130
+ export interface OpenFeatureEvaluationDetails {
131
131
  value: unknown;
132
132
  variant?: string;
133
133
  reason?: string;
134
134
  }
135
135
  /** Just enough of an OpenFeature hook to be registered as one. */
136
- interface OpenFeatureHook {
136
+ export interface OpenFeatureHook {
137
137
  after?(hookContext: OpenFeatureHookContext, details: OpenFeatureEvaluationDetails): void;
138
138
  error?(hookContext: OpenFeatureHookContext, error: unknown): void;
139
139
  }
140
- interface OpenFeatureHookOptions {
140
+ export interface OpenFeatureHookOptions {
141
141
  /**
142
142
  * Where to record. Defaults to the active span, which is what you want:
143
143
  * the span that branched on the flag is the one whose latency and errors the
@@ -170,6 +170,5 @@ interface OpenFeatureHookOptions {
170
170
  * actually used and `reason: 'ERROR'`. The default is what the request behaved
171
171
  * as; the failure is why.
172
172
  */
173
- declare function autotelOpenFeatureHook(options?: OpenFeatureHookOptions): OpenFeatureHook;
174
- //#endregion
175
- export { FEATURE_FLAG, FEATURE_FLAG_EVALUATION_EVENT, FEATURE_FLAG_REASON, FeatureFlagAttributeValue, FeatureFlagEvaluation, FeatureFlagSink, OpenFeatureEvaluationDetails, OpenFeatureHook, OpenFeatureHookContext, OpenFeatureHookOptions, autotelOpenFeatureHook, featureFlagAttributes, recordFeatureFlag };
173
+ export declare function autotelOpenFeatureHook(options?: OpenFeatureHookOptions): OpenFeatureHook;
174
+ //#endregion
@@ -29,32 +29,32 @@
29
29
  * branch on is the one that explains its behaviour.
30
30
  */
31
31
  /** Canonical `feature_flag.*` attribute keys. */
32
- declare const FEATURE_FLAG: {
33
- readonly KEY: "feature_flag.key";
34
- readonly RESULT_VALUE: "feature_flag.result.value";
35
- readonly RESULT_VARIANT: "feature_flag.result.variant";
36
- readonly RESULT_REASON: "feature_flag.result.reason";
37
- readonly PROVIDER_NAME: "feature_flag.provider.name";
38
- readonly CONTEXT_ID: "feature_flag.context.id";
39
- readonly SET_ID: "feature_flag.set.id";
40
- readonly VERSION: "feature_flag.version";
32
+ export declare const FEATURE_FLAG: {
33
+ readonly KEY: 'feature_flag.key';
34
+ readonly RESULT_VALUE: 'feature_flag.result.value';
35
+ readonly RESULT_VARIANT: 'feature_flag.result.variant';
36
+ readonly RESULT_REASON: 'feature_flag.result.reason';
37
+ readonly PROVIDER_NAME: 'feature_flag.provider.name';
38
+ readonly CONTEXT_ID: 'feature_flag.context.id';
39
+ readonly SET_ID: 'feature_flag.set.id';
40
+ readonly VERSION: 'feature_flag.version';
41
41
  /**
42
42
  * Why an evaluation failed. `feature_flag.evaluation.error.message` is the
43
43
  * deprecated spelling of this and is deliberately not emitted — writing both
44
44
  * would double the cardinality to no benefit.
45
45
  */
46
- readonly ERROR_MESSAGE: "feature_flag.error.message";
46
+ readonly ERROR_MESSAGE: 'feature_flag.error.message';
47
47
  };
48
48
  /** Canonical event name for one evaluation. */
49
- declare const FEATURE_FLAG_EVALUATION_EVENT = "feature_flag.evaluation";
49
+ export declare const FEATURE_FLAG_EVALUATION_EVENT = "feature_flag.evaluation";
50
50
  /**
51
51
  * Canonical `feature_flag.result.reason` values. The registry defines them in
52
52
  * lower snake case; OpenFeature and most SDKs report them upper-cased, and
53
53
  * forwarding that splits every group-by into two buckets meaning the same
54
54
  * thing.
55
55
  */
56
- declare const FEATURE_FLAG_REASON: readonly ["static", "default", "targeting_match", "split", "cached", "disabled", "unknown", "stale", "error"];
57
- interface FeatureFlagEvaluation {
56
+ export declare const FEATURE_FLAG_REASON: readonly ['static', 'default', 'targeting_match', 'split', 'cached', 'disabled', 'unknown', 'stale', 'error'];
57
+ export interface FeatureFlagEvaluation {
58
58
  /** The flag's key, e.g. `new-checkout`. */
59
59
  key: string;
60
60
  /** The value the code branched on. Serialised if it is not a string. */
@@ -79,7 +79,7 @@ interface FeatureFlagEvaluation {
79
79
  errorMessage?: string;
80
80
  }
81
81
  /** What an attribute can hold without being flattened to text. */
82
- type FeatureFlagAttributeValue = string | number | boolean;
82
+ export type FeatureFlagAttributeValue = string | number | boolean;
83
83
  /**
84
84
  * The smallest thing that can carry an evaluation.
85
85
  *
@@ -92,12 +92,12 @@ type FeatureFlagAttributeValue = string | number | boolean;
92
92
  * A sink with no `track` still records the attributes, which covers the common
93
93
  * single-flag span.
94
94
  */
95
- interface FeatureFlagSink {
95
+ export interface FeatureFlagSink {
96
96
  setAttributes(attributes: Record<string, FeatureFlagAttributeValue>): void;
97
97
  track?(name: string, attributes?: Record<string, FeatureFlagAttributeValue>): void;
98
98
  }
99
99
  /** Canonical attributes for one evaluation. Absent fields are omitted. */
100
- declare function featureFlagAttributes(evaluation: FeatureFlagEvaluation): Record<string, FeatureFlagAttributeValue>;
100
+ export declare function featureFlagAttributes(evaluation: FeatureFlagEvaluation): Record<string, FeatureFlagAttributeValue>;
101
101
  /**
102
102
  * Record a flag evaluation on `sink` — as attributes and as a
103
103
  * `feature_flag.evaluation` event.
@@ -105,7 +105,7 @@ declare function featureFlagAttributes(evaluation: FeatureFlagEvaluation): Recor
105
105
  * A missing sink is a no-op: instrumentation must never be the reason a branch
106
106
  * throws, and a flag read outside any span is a legitimate thing to do.
107
107
  */
108
- declare function recordFeatureFlag(sink: FeatureFlagSink | undefined, evaluation: FeatureFlagEvaluation): void;
108
+ export declare function recordFeatureFlag(sink: FeatureFlagSink | undefined, evaluation: FeatureFlagEvaluation): void;
109
109
  /**
110
110
  * The parts of an OpenFeature hook context this reads. Structurally typed on
111
111
  * purpose: matching the shape rather than importing `@openfeature/server-sdk`
@@ -113,7 +113,7 @@ declare function recordFeatureFlag(sink: FeatureFlagSink | undefined, evaluation
113
113
  * works against the web SDK, the server SDK and the React one alike — they
114
114
  * agree on this shape and disagree on almost everything else.
115
115
  */
116
- interface OpenFeatureHookContext {
116
+ export interface OpenFeatureHookContext {
117
117
  flagKey: string;
118
118
  defaultValue: unknown;
119
119
  context?: {
@@ -127,17 +127,17 @@ interface OpenFeatureHookContext {
127
127
  };
128
128
  }
129
129
  /** The evaluation result an OpenFeature hook receives. */
130
- interface OpenFeatureEvaluationDetails {
130
+ export interface OpenFeatureEvaluationDetails {
131
131
  value: unknown;
132
132
  variant?: string;
133
133
  reason?: string;
134
134
  }
135
135
  /** Just enough of an OpenFeature hook to be registered as one. */
136
- interface OpenFeatureHook {
136
+ export interface OpenFeatureHook {
137
137
  after?(hookContext: OpenFeatureHookContext, details: OpenFeatureEvaluationDetails): void;
138
138
  error?(hookContext: OpenFeatureHookContext, error: unknown): void;
139
139
  }
140
- interface OpenFeatureHookOptions {
140
+ export interface OpenFeatureHookOptions {
141
141
  /**
142
142
  * Where to record. Defaults to the active span, which is what you want:
143
143
  * the span that branched on the flag is the one whose latency and errors the
@@ -170,6 +170,5 @@ interface OpenFeatureHookOptions {
170
170
  * actually used and `reason: 'ERROR'`. The default is what the request behaved
171
171
  * as; the failure is why.
172
172
  */
173
- declare function autotelOpenFeatureHook(options?: OpenFeatureHookOptions): OpenFeatureHook;
174
- //#endregion
175
- export { FEATURE_FLAG, FEATURE_FLAG_EVALUATION_EVENT, FEATURE_FLAG_REASON, FeatureFlagAttributeValue, FeatureFlagEvaluation, FeatureFlagSink, OpenFeatureEvaluationDetails, OpenFeatureHook, OpenFeatureHookContext, OpenFeatureHookOptions, autotelOpenFeatureHook, featureFlagAttributes, recordFeatureFlag };
173
+ export declare function autotelOpenFeatureHook(options?: OpenFeatureHookOptions): OpenFeatureHook;
174
+ //#endregion