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
@@ -4,15 +4,15 @@ import { Attributes, Link, SpanContext } from "@opentelemetry/api";
4
4
  /**
5
5
  * Supported messaging systems
6
6
  */
7
- type MessagingSystem = 'kafka' | 'rabbitmq' | 'sqs' | 'sns' | 'pubsub' | 'activemq' | 'azure_servicebus' | 'eventhubs' | (string & {});
7
+ export type MessagingSystem = 'kafka' | 'rabbitmq' | 'sqs' | 'sns' | 'pubsub' | 'activemq' | 'azure_servicebus' | 'eventhubs' | (string & {});
8
8
  /**
9
9
  * Messaging operation types
10
10
  */
11
- type MessagingOperation = 'publish' | 'receive' | 'process' | 'settle';
11
+ export type MessagingOperation = 'publish' | 'receive' | 'process' | 'settle';
12
12
  /**
13
13
  * Configuration for producer tracing
14
14
  */
15
- interface ProducerConfig {
15
+ export interface ProducerConfig {
16
16
  /** Messaging system (kafka, rabbitmq, sqs, etc.) */
17
17
  system: MessagingSystem;
18
18
  /** Destination name (topic/queue) */
@@ -83,7 +83,7 @@ interface ProducerConfig {
83
83
  /**
84
84
  * Configuration for consumer tracing
85
85
  */
86
- interface ConsumerConfig<TMessage = unknown> {
86
+ export interface ConsumerConfig<TMessage = unknown> {
87
87
  /** Messaging system (kafka, rabbitmq, sqs, etc.) */
88
88
  system: MessagingSystem;
89
89
  /** Destination name (topic/queue) */
@@ -209,7 +209,7 @@ interface ConsumerConfig<TMessage = unknown> {
209
209
  /**
210
210
  * Configuration for consumer lag metrics
211
211
  */
212
- interface LagMetricsConfig<TMessage = unknown> {
212
+ export interface LagMetricsConfig<TMessage = unknown> {
213
213
  /** Get current message offset */
214
214
  getCurrentOffset?: (msg: TMessage) => number | undefined;
215
215
  /** Get end offset (high watermark) - can be async */
@@ -222,7 +222,7 @@ interface LagMetricsConfig<TMessage = unknown> {
222
222
  /**
223
223
  * Configuration for message ordering tracking
224
224
  */
225
- interface OrderingConfig<TMessage = unknown> {
225
+ export interface OrderingConfig<TMessage = unknown> {
226
226
  /**
227
227
  * Extract sequence number from message
228
228
  *
@@ -291,7 +291,7 @@ interface OrderingConfig<TMessage = unknown> {
291
291
  /**
292
292
  * Information about out-of-order message
293
293
  */
294
- interface OutOfOrderInfo {
294
+ export interface OutOfOrderInfo {
295
295
  /** Current sequence number */
296
296
  currentSequence: number;
297
297
  /** Expected sequence number */
@@ -320,7 +320,7 @@ interface OutOfOrderInfo {
320
320
  * }
321
321
  * ```
322
322
  */
323
- interface ConsumerGroupTrackingConfig {
323
+ export interface ConsumerGroupTrackingConfig {
324
324
  /**
325
325
  * Consumer member ID
326
326
  *
@@ -366,11 +366,11 @@ interface ConsumerGroupTrackingConfig {
366
366
  /**
367
367
  * Rebalance event types
368
368
  */
369
- type RebalanceType = 'assigned' | 'revoked' | 'lost';
369
+ export type RebalanceType = 'assigned' | 'revoked' | 'lost';
370
370
  /**
371
371
  * Rebalance event information
372
372
  */
373
- interface RebalanceEvent {
373
+ export interface RebalanceEvent {
374
374
  /** Type of rebalance event */
375
375
  type: RebalanceType;
376
376
  /** Partitions affected by the rebalance */
@@ -387,7 +387,7 @@ interface RebalanceEvent {
387
387
  /**
388
388
  * Partition assignment information
389
389
  */
390
- interface PartitionAssignment {
390
+ export interface PartitionAssignment {
391
391
  /** Topic name */
392
392
  topic: string;
393
393
  /** Partition number */
@@ -400,7 +400,7 @@ interface PartitionAssignment {
400
400
  /**
401
401
  * Consumer group state snapshot
402
402
  */
403
- interface ConsumerGroupState {
403
+ export interface ConsumerGroupState {
404
404
  /** Consumer group name */
405
405
  groupId: string;
406
406
  /** Consumer member ID */
@@ -421,7 +421,7 @@ interface ConsumerGroupState {
421
421
  /**
422
422
  * Partition lag information
423
423
  */
424
- interface PartitionLag {
424
+ export interface PartitionLag {
425
425
  /** Topic name */
426
426
  topic: string;
427
427
  /** Partition number */
@@ -438,11 +438,11 @@ interface PartitionLag {
438
438
  /**
439
439
  * DLQ failure category types
440
440
  */
441
- type DLQReasonCategory = 'validation' | 'processing' | 'timeout' | 'poison' | 'unknown';
441
+ export type DLQReasonCategory = 'validation' | 'processing' | 'timeout' | 'poison' | 'unknown';
442
442
  /**
443
443
  * Options for enhanced DLQ recording
444
444
  */
445
- interface DLQOptions {
445
+ export interface DLQOptions {
446
446
  /**
447
447
  * Automatically link to the producer span context
448
448
  *
@@ -480,7 +480,7 @@ interface DLQOptions {
480
480
  /**
481
481
  * Options for recording DLQ replay
482
482
  */
483
- interface DLQReplayOptions {
483
+ export interface DLQReplayOptions {
484
484
  /**
485
485
  * Original span context from DLQ message
486
486
  *
@@ -500,11 +500,11 @@ interface DLQReplayOptions {
500
500
  * Extended trace context for producers with header injection
501
501
  */
502
502
  /** The W3C trace context headers a producer attaches to a message. */
503
- interface TraceHeaders {
503
+ export interface TraceHeaders {
504
504
  traceparent: string;
505
505
  tracestate?: string;
506
506
  }
507
- interface ProducerContext extends TraceContext {
507
+ export interface ProducerContext extends TraceContext {
508
508
  /**
509
509
  * Get W3C trace context headers to inject into message
510
510
  *
@@ -546,7 +546,7 @@ interface ProducerContext extends TraceContext {
546
546
  /**
547
547
  * Extended trace context for consumers
548
548
  */
549
- interface ConsumerContext extends TraceContext {
549
+ export interface ConsumerContext extends TraceContext {
550
550
  /**
551
551
  * Record that a message is being sent to DLQ
552
552
  *
@@ -702,7 +702,7 @@ interface ConsumerContext extends TraceContext {
702
702
  */
703
703
  getAssignedPartitions(): PartitionAssignment[];
704
704
  }
705
- declare function traceProducer(config: ProducerConfig): <TArgs extends unknown[], TReturn>(fnFactory: (ctx: ProducerContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
705
+ export declare function traceProducer(config: ProducerConfig): <TArgs extends unknown[], TReturn>(fnFactory: (ctx: ProducerContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
706
706
  /**
707
707
  * Create a traced message consumer function
708
708
  *
@@ -771,10 +771,9 @@ declare function traceProducer(config: ProducerConfig): <TArgs extends unknown[]
771
771
  * });
772
772
  * ```
773
773
  */
774
- declare function traceConsumer<TMessage = unknown>(typedConfig: ConsumerConfig<TMessage>): <TArgs extends unknown[], TReturn>(fnFactory: (ctx: ConsumerContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
774
+ export declare function traceConsumer<TMessage = unknown>(typedConfig: ConsumerConfig<TMessage>): <TArgs extends unknown[], TReturn>(fnFactory: (ctx: ConsumerContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
775
775
  /**
776
776
  * Clear sequence tracking state (useful for testing)
777
777
  */
778
- declare function clearOrderingState(): void;
779
- //#endregion
780
- export { ConsumerConfig, ConsumerContext, ConsumerGroupState, ConsumerGroupTrackingConfig, DLQOptions, DLQReasonCategory, DLQReplayOptions, LagMetricsConfig, MessagingOperation, MessagingSystem, OrderingConfig, OutOfOrderInfo, PartitionAssignment, PartitionLag, ProducerConfig, ProducerContext, RebalanceEvent, RebalanceType, TraceHeaders, clearOrderingState, traceConsumer, traceProducer };
778
+ export declare function clearOrderingState(): void;
779
+ //#endregion
package/dist/messaging.js CHANGED
@@ -1,6 +1,6 @@
1
- import { F as createLinkFromHeaders, L as extractLinksFromBatch } from "./init-8SISAGdE.js";
1
+ import { L as createLinkFromHeaders, z as extractLinksFromBatch } from "./init-rVPOUqng.js";
2
2
  import { _ as readProperty, b as toAttributeValue, c as asScalar, g as nonEmptyString, h as isFunction, s as asRecord, v as resolveValue, y as splitNameOrOptions } from "./values-xBtdXtjA.js";
3
- import { l as withTracing } from "./functional-CC2BFGAO.js";
3
+ import { l as withTracing } from "./functional-DHn-xGtR.js";
4
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 { SpanKind, context, propagation } from "@opentelemetry/api";
@@ -1,13 +1,12 @@
1
1
  import { Counter, Histogram, Meter, ObservableGauge, UpDownCounter } from "@opentelemetry/api";
2
2
  //#region src/metric-helpers.d.ts
3
- declare function getMeter(): Meter;
3
+ export declare function getMeter(): Meter;
4
4
  type CounterOptions = Parameters<Meter['createCounter']>[1];
5
5
  type HistogramOptions = Parameters<Meter['createHistogram']>[1];
6
6
  type UpDownCounterOptions = Parameters<Meter['createUpDownCounter']>[1];
7
7
  type ObservableGaugeOptions = Parameters<Meter['createObservableGauge']>[1];
8
- declare function createCounter(name: string, options?: CounterOptions): Counter;
9
- declare function createHistogram(name: string, options?: HistogramOptions): Histogram;
10
- declare function createUpDownCounter(name: string, options?: UpDownCounterOptions): UpDownCounter;
11
- declare function createObservableGauge(name: string, options?: ObservableGaugeOptions): ObservableGauge;
12
- //#endregion
13
- export { createCounter, createHistogram, createObservableGauge, createUpDownCounter, getMeter };
8
+ export declare function createCounter(name: string, options?: CounterOptions): Counter;
9
+ export declare function createHistogram(name: string, options?: HistogramOptions): Histogram;
10
+ export declare function createUpDownCounter(name: string, options?: UpDownCounterOptions): UpDownCounter;
11
+ export declare function createObservableGauge(name: string, options?: ObservableGaugeOptions): ObservableGauge;
12
+ //#endregion
@@ -1,13 +1,12 @@
1
1
  import { Counter, Histogram, Meter, ObservableGauge, UpDownCounter } from "@opentelemetry/api";
2
2
  //#region src/metric-helpers.d.ts
3
- declare function getMeter(): Meter;
3
+ export declare function getMeter(): Meter;
4
4
  type CounterOptions = Parameters<Meter['createCounter']>[1];
5
5
  type HistogramOptions = Parameters<Meter['createHistogram']>[1];
6
6
  type UpDownCounterOptions = Parameters<Meter['createUpDownCounter']>[1];
7
7
  type ObservableGaugeOptions = Parameters<Meter['createObservableGauge']>[1];
8
- declare function createCounter(name: string, options?: CounterOptions): Counter;
9
- declare function createHistogram(name: string, options?: HistogramOptions): Histogram;
10
- declare function createUpDownCounter(name: string, options?: UpDownCounterOptions): UpDownCounter;
11
- declare function createObservableGauge(name: string, options?: ObservableGaugeOptions): ObservableGauge;
12
- //#endregion
13
- export { createCounter, createHistogram, createObservableGauge, createUpDownCounter, getMeter };
8
+ export declare function createCounter(name: string, options?: CounterOptions): Counter;
9
+ export declare function createHistogram(name: string, options?: HistogramOptions): Histogram;
10
+ export declare function createUpDownCounter(name: string, options?: UpDownCounterOptions): UpDownCounter;
11
+ export declare function createObservableGauge(name: string, options?: ObservableGaugeOptions): ObservableGauge;
12
+ //#endregion
package/dist/metric.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, l as OutcomeStatus, r as EventAttributes } from "./event-subscriber-DMACQA-1.cjs";
3
3
  import { t as MetricsCollector } from "./metric-testing-86WO1wan.cjs";
4
4
  //#region src/metric.d.ts
@@ -16,7 +16,7 @@ import { t as MetricsCollector } from "./metric-testing-86WO1wan.cjs";
16
16
  /**
17
17
  * Metric configuration for customizing metric names and descriptions
18
18
  */
19
- interface MetricConfig {
19
+ export interface MetricConfig {
20
20
  /** Metric name (e.g., 'metrics.events' or 'custom.events') */
21
21
  name?: string;
22
22
  /** Metric description */
@@ -27,7 +27,7 @@ interface MetricConfig {
27
27
  /**
28
28
  * Metrics options
29
29
  */
30
- interface MetricsOptions {
30
+ export interface MetricsOptions {
31
31
  /** Optional logger for audit trail */
32
32
  logger?: Logger;
33
33
  /** Optional collector for testing (captures metrics in memory) */
@@ -48,7 +48,7 @@ interface MetricsOptions {
48
48
  value?: MetricConfig;
49
49
  };
50
50
  }
51
- declare class Metric {
51
+ export declare class Metric {
52
52
  private serviceName;
53
53
  private eventCounter;
54
54
  private funnelCounter;
@@ -201,10 +201,10 @@ declare class Metric {
201
201
  * metrics.trackEvent('order.completed', { orderId: '123' })
202
202
  * ```
203
203
  */
204
- declare function getMetrics(serviceName: string, logger?: Logger): Metric;
204
+ export declare function getMetrics(serviceName: string, logger?: Logger): Metric;
205
205
  /**
206
206
  * Reset all metrics instances (mainly for testing)
207
207
  */
208
- declare function resetMetrics(): void;
208
+ export declare function resetMetrics(): void;
209
209
  //#endregion
210
- export { type EventAttributes, type FunnelStatus, Metric, MetricConfig, MetricsOptions, type OutcomeStatus, getMetrics, resetMetrics };
210
+ export type { EventAttributes, FunnelStatus, OutcomeStatus };
package/dist/metric.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, l as OutcomeStatus, r as EventAttributes } from "./event-subscriber-DMACQA-1.js";
3
3
  import { t as MetricsCollector } from "./metric-testing-CbCxdPBp.js";
4
4
  //#region src/metric.d.ts
@@ -16,7 +16,7 @@ import { t as MetricsCollector } from "./metric-testing-CbCxdPBp.js";
16
16
  /**
17
17
  * Metric configuration for customizing metric names and descriptions
18
18
  */
19
- interface MetricConfig {
19
+ export interface MetricConfig {
20
20
  /** Metric name (e.g., 'metrics.events' or 'custom.events') */
21
21
  name?: string;
22
22
  /** Metric description */
@@ -27,7 +27,7 @@ interface MetricConfig {
27
27
  /**
28
28
  * Metrics options
29
29
  */
30
- interface MetricsOptions {
30
+ export interface MetricsOptions {
31
31
  /** Optional logger for audit trail */
32
32
  logger?: Logger;
33
33
  /** Optional collector for testing (captures metrics in memory) */
@@ -48,7 +48,7 @@ interface MetricsOptions {
48
48
  value?: MetricConfig;
49
49
  };
50
50
  }
51
- declare class Metric {
51
+ export declare class Metric {
52
52
  private serviceName;
53
53
  private eventCounter;
54
54
  private funnelCounter;
@@ -201,10 +201,10 @@ declare class Metric {
201
201
  * metrics.trackEvent('order.completed', { orderId: '123' })
202
202
  * ```
203
203
  */
204
- declare function getMetrics(serviceName: string, logger?: Logger): Metric;
204
+ export declare function getMetrics(serviceName: string, logger?: Logger): Metric;
205
205
  /**
206
206
  * Reset all metrics instances (mainly for testing)
207
207
  */
208
- declare function resetMetrics(): void;
208
+ export declare function resetMetrics(): void;
209
209
  //#endregion
210
- export { type EventAttributes, type FunnelStatus, Metric, MetricConfig, MetricsOptions, type OutcomeStatus, getMetrics, resetMetrics };
210
+ export type { EventAttributes, FunnelStatus, OutcomeStatus };
@@ -1,6 +1,6 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.cjs";
2
2
  //#region src/parse-error.d.ts
3
- interface ParsedError {
3
+ export interface ParsedError {
4
4
  message: string;
5
5
  status: number;
6
6
  why?: string;
@@ -10,6 +10,5 @@ interface ParsedError {
10
10
  details?: UnknownRecord;
11
11
  raw: unknown;
12
12
  }
13
- declare function parseError(error: unknown): ParsedError;
14
- //#endregion
15
- export { ParsedError, parseError };
13
+ export declare function parseError(error: unknown): ParsedError;
14
+ //#endregion
@@ -1,6 +1,6 @@
1
1
  import { t as UnknownRecord } from "./values-CeMH-mYG.js";
2
2
  //#region src/parse-error.d.ts
3
- interface ParsedError {
3
+ export interface ParsedError {
4
4
  message: string;
5
5
  status: number;
6
6
  why?: string;
@@ -10,6 +10,5 @@ interface ParsedError {
10
10
  details?: UnknownRecord;
11
11
  raw: unknown;
12
12
  }
13
- declare function parseError(error: unknown): ParsedError;
14
- //#endregion
15
- export { ParsedError, parseError };
13
+ export declare function parseError(error: unknown): ParsedError;
14
+ //#endregion
package/dist/policy.cjs CHANGED
Binary file
package/dist/policy.js CHANGED
Binary file
@@ -1,3 +1,3 @@
1
- import { n as CanonicalLogLineProcessor, t as CanonicalLogLineOptions } from "./canonical-log-line-processor-C0Z_N4oL.cjs";
1
+ import { n as CanonicalLogLineProcessor, t as CanonicalLogLineOptions } from "./canonical-log-line-processor-DLeAQjgb.cjs";
2
2
  import { BatchSpanProcessor, SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
3
3
  export { BatchSpanProcessor, type CanonicalLogLineOptions, CanonicalLogLineProcessor, SimpleSpanProcessor };
@@ -1,3 +1,3 @@
1
- import { n as CanonicalLogLineProcessor, t as CanonicalLogLineOptions } from "./canonical-log-line-processor-Bwrt_L4c.js";
1
+ import { n as CanonicalLogLineProcessor, t as CanonicalLogLineOptions } from "./canonical-log-line-processor-DDGzm-wi.js";
2
2
  import { BatchSpanProcessor, SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
3
3
  export { BatchSpanProcessor, type CanonicalLogLineOptions, CanonicalLogLineProcessor, SimpleSpanProcessor };
@@ -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 { Attributes, Link } from "@opentelemetry/api";
4
4
  //#region src/sampling.d.ts
5
5
  /**
@@ -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 { Attributes, Link } from "@opentelemetry/api";
4
4
  //#region src/sampling.d.ts
5
5
  /**
package/dist/sampling.cjs CHANGED
@@ -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.AUTOTEL_DEBUG_BAGGAGE_KEY = require_init.AUTOTEL_DEBUG_BAGGAGE_KEY;
5
5
  exports.AUTOTEL_SAMPLING_RATE = require_init.AUTOTEL_SAMPLING_RATE;
@@ -1,2 +1,2 @@
1
- import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-DENUjT_8.cjs";
1
+ import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-Dud4XU2m.cjs";
2
2
  export { AUTOTEL_DEBUG_BAGGAGE_KEY, AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, CompositeSampler, DeterministicSampler, FeatureFlagSampler, KeyTargetRateSampler, NeverSampler, OperationResult, RandomSampler, Sampler, SamplingContext, SamplingPreset, UserIdSampler, createLinkFromHeaders, debugCaptureRequested, extractLinksFromBatch, hashUnitInterval, isForceKept, markForceKept, resolveSamplingPreset, samplingPresets };
@@ -1,2 +1,2 @@
1
- import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-CZi7OM9u.js";
1
+ import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-B_8orhSB.js";
2
2
  export { AUTOTEL_DEBUG_BAGGAGE_KEY, AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, CompositeSampler, DeterministicSampler, FeatureFlagSampler, KeyTargetRateSampler, NeverSampler, OperationResult, RandomSampler, Sampler, SamplingContext, SamplingPreset, UserIdSampler, createLinkFromHeaders, debugCaptureRequested, extractLinksFromBatch, hashUnitInterval, isForceKept, markForceKept, resolveSamplingPreset, samplingPresets };
package/dist/sampling.js CHANGED
@@ -1,3 +1,3 @@
1
- import { A as FeatureFlagSampler, B as markForceKept, C as AUTOTEL_SAMPLING_RATE, D as AlwaysSampler, E as AdaptiveSampler, F as createLinkFromHeaders, H as samplingPresets, I as debugCaptureRequested, L as extractLinksFromBatch, M as NeverSampler, N as RandomSampler, O as CompositeSampler, P as UserIdSampler, R as hashUnitInterval, S as AUTOTEL_DEBUG_BAGGAGE_KEY, T as AUTOTEL_SAMPLING_TAIL_KEEP, V as resolveSamplingPreset, j as KeyTargetRateSampler, k as DeterministicSampler, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, z as isForceKept } from "./init-8SISAGdE.js";
1
+ import { A as CompositeSampler, B as hashUnitInterval, D as AUTOTEL_SAMPLING_TAIL_KEEP, E as AUTOTEL_SAMPLING_TAIL_EVALUATED, F as RandomSampler, H as markForceKept, I as UserIdSampler, L as createLinkFromHeaders, M as FeatureFlagSampler, N as KeyTargetRateSampler, O as AdaptiveSampler, P as NeverSampler, R as debugCaptureRequested, T as AUTOTEL_SAMPLING_RATE, U as resolveSamplingPreset, V as isForceKept, W as samplingPresets, j as DeterministicSampler, k as AlwaysSampler, w as AUTOTEL_DEBUG_BAGGAGE_KEY, z as extractLinksFromBatch } from "./init-rVPOUqng.js";
2
2
 
3
3
  export { AUTOTEL_DEBUG_BAGGAGE_KEY, AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, CompositeSampler, DeterministicSampler, FeatureFlagSampler, KeyTargetRateSampler, NeverSampler, RandomSampler, UserIdSampler, createLinkFromHeaders, debugCaptureRequested, extractLinksFromBatch, hashUnitInterval, isForceKept, markForceKept, resolveSamplingPreset, samplingPresets };
@@ -10,59 +10,58 @@
10
10
  * browser bundles (devtools widget) and anything else that only needs
11
11
  * the constants, without pulling in the OpenTelemetry SDK.
12
12
  */
13
- type SecuritySeverity = 'info' | 'warning' | 'error' | 'critical';
13
+ export type SecuritySeverity = 'info' | 'warning' | 'error' | 'critical';
14
14
  /** All severities, lowest first. */
15
- declare const SECURITY_SEVERITIES: readonly SecuritySeverity[];
15
+ export declare const SECURITY_SEVERITIES: readonly SecuritySeverity[];
16
16
  /** Numeric rank per severity for threshold comparisons. */
17
- declare const SECURITY_SEVERITY_RANK: Record<SecuritySeverity, number>;
17
+ export declare const SECURITY_SEVERITY_RANK: Record<SecuritySeverity, number>;
18
18
  /**
19
19
  * Parse an untrusted value (span attribute, event payload field) into a
20
20
  * severity, falling back when it is missing or malformed.
21
21
  */
22
- declare function parseSecuritySeverity(value: unknown, fallback?: SecuritySeverity): SecuritySeverity;
22
+ export declare function parseSecuritySeverity(value: unknown, fallback?: SecuritySeverity): SecuritySeverity;
23
23
  /** `true` when `severity` meets or exceeds `min`. */
24
- declare function securitySeverityAtLeast(severity: SecuritySeverity, min: SecuritySeverity): boolean;
24
+ export declare function securitySeverityAtLeast(severity: SecuritySeverity, min: SecuritySeverity): boolean;
25
25
  /** The higher-ranked of two severities (e.g. escalate failures to ≥ error). */
26
- declare function escalateSecuritySeverity(severity: SecuritySeverity, floor: SecuritySeverity): SecuritySeverity;
26
+ export declare function escalateSecuritySeverity(severity: SecuritySeverity, floor: SecuritySeverity): SecuritySeverity;
27
27
  /**
28
28
  * Span attribute keys of the security schema. Emitters and consumers must
29
29
  * reference these instead of re-typing the strings.
30
30
  */
31
- declare const SECURITY_ATTR: {
31
+ export declare const SECURITY_ATTR: {
32
32
  /** Marker set on every span carrying a security event. */
33
- readonly marker: "autotel.security";
33
+ readonly marker: 'autotel.security';
34
34
  /** Set when the event was force-kept through tail sampling. */
35
- readonly forceKeep: "autotel.security.force_keep";
36
- readonly event: "security.event";
37
- readonly category: "security.category";
38
- readonly outcome: "security.outcome";
39
- readonly severity: "security.severity";
40
- readonly actorId: "security.actor_id";
41
- readonly targetType: "security.target_type";
42
- readonly targetId: "security.target_id";
43
- readonly tenantId: "security.tenant_id";
44
- readonly reason: "security.reason";
35
+ readonly forceKeep: 'autotel.security.force_keep';
36
+ readonly event: 'security.event';
37
+ readonly category: 'security.category';
38
+ readonly outcome: 'security.outcome';
39
+ readonly severity: 'security.severity';
40
+ readonly actorId: 'security.actor_id';
41
+ readonly targetType: 'security.target_type';
42
+ readonly targetId: 'security.target_id';
43
+ readonly tenantId: 'security.tenant_id';
44
+ readonly reason: 'security.reason';
45
45
  /** Custom metadata keys dropped because they looked credential-shaped. */
46
- readonly droppedKeys: "security.dropped_keys";
46
+ readonly droppedKeys: 'security.dropped_keys';
47
47
  /** Set by the signal processor on suspicious request paths. */
48
- readonly suspiciousRequest: "security.suspicious_request";
48
+ readonly suspiciousRequest: 'security.suspicious_request';
49
49
  /** Pattern name that flagged a suspicious request, e.g. `path_traversal`. */
50
- readonly signal: "security.signal";
50
+ readonly signal: 'security.signal';
51
51
  };
52
52
  /** Metric names emitted by the security instrumentation. */
53
- declare const SECURITY_METRICS: {
54
- readonly events: "autotel.security.events";
55
- readonly httpSuspicious: "autotel.security.http.suspicious";
56
- readonly httpDenied: "autotel.security.http.denied";
57
- readonly anomaly: "autotel.security.anomaly";
58
- readonly heartbeat: "autotel.security.heartbeat";
53
+ export declare const SECURITY_METRICS: {
54
+ readonly events: 'autotel.security.events';
55
+ readonly httpSuspicious: 'autotel.security.http.suspicious';
56
+ readonly httpDenied: 'autotel.security.http.denied';
57
+ readonly anomaly: 'autotel.security.anomaly';
58
+ readonly heartbeat: 'autotel.security.heartbeat';
59
59
  };
60
60
  /** HTTP statuses counted as denied responses by default. */
61
- declare const SECURITY_DENIED_STATUSES: readonly number[];
61
+ export declare const SECURITY_DENIED_STATUSES: readonly number[];
62
62
  /**
63
63
  * Span attributes carrying the HTTP response status, current semconv
64
64
  * first, legacy fallback second.
65
65
  */
66
- declare const HTTP_STATUS_ATTRIBUTES: readonly string[];
67
- //#endregion
68
- export { HTTP_STATUS_ATTRIBUTES, SECURITY_ATTR, SECURITY_DENIED_STATUSES, SECURITY_METRICS, SECURITY_SEVERITIES, SECURITY_SEVERITY_RANK, SecuritySeverity, escalateSecuritySeverity, parseSecuritySeverity, securitySeverityAtLeast };
66
+ export declare const HTTP_STATUS_ATTRIBUTES: readonly string[];
67
+ //#endregion
@@ -10,59 +10,58 @@
10
10
  * browser bundles (devtools widget) and anything else that only needs
11
11
  * the constants, without pulling in the OpenTelemetry SDK.
12
12
  */
13
- type SecuritySeverity = 'info' | 'warning' | 'error' | 'critical';
13
+ export type SecuritySeverity = 'info' | 'warning' | 'error' | 'critical';
14
14
  /** All severities, lowest first. */
15
- declare const SECURITY_SEVERITIES: readonly SecuritySeverity[];
15
+ export declare const SECURITY_SEVERITIES: readonly SecuritySeverity[];
16
16
  /** Numeric rank per severity for threshold comparisons. */
17
- declare const SECURITY_SEVERITY_RANK: Record<SecuritySeverity, number>;
17
+ export declare const SECURITY_SEVERITY_RANK: Record<SecuritySeverity, number>;
18
18
  /**
19
19
  * Parse an untrusted value (span attribute, event payload field) into a
20
20
  * severity, falling back when it is missing or malformed.
21
21
  */
22
- declare function parseSecuritySeverity(value: unknown, fallback?: SecuritySeverity): SecuritySeverity;
22
+ export declare function parseSecuritySeverity(value: unknown, fallback?: SecuritySeverity): SecuritySeverity;
23
23
  /** `true` when `severity` meets or exceeds `min`. */
24
- declare function securitySeverityAtLeast(severity: SecuritySeverity, min: SecuritySeverity): boolean;
24
+ export declare function securitySeverityAtLeast(severity: SecuritySeverity, min: SecuritySeverity): boolean;
25
25
  /** The higher-ranked of two severities (e.g. escalate failures to ≥ error). */
26
- declare function escalateSecuritySeverity(severity: SecuritySeverity, floor: SecuritySeverity): SecuritySeverity;
26
+ export declare function escalateSecuritySeverity(severity: SecuritySeverity, floor: SecuritySeverity): SecuritySeverity;
27
27
  /**
28
28
  * Span attribute keys of the security schema. Emitters and consumers must
29
29
  * reference these instead of re-typing the strings.
30
30
  */
31
- declare const SECURITY_ATTR: {
31
+ export declare const SECURITY_ATTR: {
32
32
  /** Marker set on every span carrying a security event. */
33
- readonly marker: "autotel.security";
33
+ readonly marker: 'autotel.security';
34
34
  /** Set when the event was force-kept through tail sampling. */
35
- readonly forceKeep: "autotel.security.force_keep";
36
- readonly event: "security.event";
37
- readonly category: "security.category";
38
- readonly outcome: "security.outcome";
39
- readonly severity: "security.severity";
40
- readonly actorId: "security.actor_id";
41
- readonly targetType: "security.target_type";
42
- readonly targetId: "security.target_id";
43
- readonly tenantId: "security.tenant_id";
44
- readonly reason: "security.reason";
35
+ readonly forceKeep: 'autotel.security.force_keep';
36
+ readonly event: 'security.event';
37
+ readonly category: 'security.category';
38
+ readonly outcome: 'security.outcome';
39
+ readonly severity: 'security.severity';
40
+ readonly actorId: 'security.actor_id';
41
+ readonly targetType: 'security.target_type';
42
+ readonly targetId: 'security.target_id';
43
+ readonly tenantId: 'security.tenant_id';
44
+ readonly reason: 'security.reason';
45
45
  /** Custom metadata keys dropped because they looked credential-shaped. */
46
- readonly droppedKeys: "security.dropped_keys";
46
+ readonly droppedKeys: 'security.dropped_keys';
47
47
  /** Set by the signal processor on suspicious request paths. */
48
- readonly suspiciousRequest: "security.suspicious_request";
48
+ readonly suspiciousRequest: 'security.suspicious_request';
49
49
  /** Pattern name that flagged a suspicious request, e.g. `path_traversal`. */
50
- readonly signal: "security.signal";
50
+ readonly signal: 'security.signal';
51
51
  };
52
52
  /** Metric names emitted by the security instrumentation. */
53
- declare const SECURITY_METRICS: {
54
- readonly events: "autotel.security.events";
55
- readonly httpSuspicious: "autotel.security.http.suspicious";
56
- readonly httpDenied: "autotel.security.http.denied";
57
- readonly anomaly: "autotel.security.anomaly";
58
- readonly heartbeat: "autotel.security.heartbeat";
53
+ export declare const SECURITY_METRICS: {
54
+ readonly events: 'autotel.security.events';
55
+ readonly httpSuspicious: 'autotel.security.http.suspicious';
56
+ readonly httpDenied: 'autotel.security.http.denied';
57
+ readonly anomaly: 'autotel.security.anomaly';
58
+ readonly heartbeat: 'autotel.security.heartbeat';
59
59
  };
60
60
  /** HTTP statuses counted as denied responses by default. */
61
- declare const SECURITY_DENIED_STATUSES: readonly number[];
61
+ export declare const SECURITY_DENIED_STATUSES: readonly number[];
62
62
  /**
63
63
  * Span attributes carrying the HTTP response status, current semconv
64
64
  * first, legacy fallback second.
65
65
  */
66
- declare const HTTP_STATUS_ATTRIBUTES: readonly string[];
67
- //#endregion
68
- export { HTTP_STATUS_ATTRIBUTES, SECURITY_ATTR, SECURITY_DENIED_STATUSES, SECURITY_METRICS, SECURITY_SEVERITIES, SECURITY_SEVERITY_RANK, SecuritySeverity, escalateSecuritySeverity, parseSecuritySeverity, securitySeverityAtLeast };
66
+ export declare const HTTP_STATUS_ATTRIBUTES: readonly string[];
67
+ //#endregion
@@ -0,0 +1,31 @@
1
+ //#region src/attributes/registry.d.ts
2
+ declare const HTTPAttributes: {
3
+ readonly connectionState: 'http.connection.state';
4
+ readonly requestMethod: 'http.request.method';
5
+ readonly requestMethodOriginal: 'http.request.method_original';
6
+ readonly requestResendCount: 'http.request.resend_count';
7
+ readonly requestSize: 'http.request.size';
8
+ readonly requestBodySize: 'http.request.body.size';
9
+ readonly responseSize: 'http.response.size';
10
+ readonly responseBodySize: 'http.response.body.size';
11
+ readonly responseStatusCode: 'http.response.status_code';
12
+ readonly route: 'http.route';
13
+ };
14
+ declare const ServiceAttributes: {
15
+ readonly name: 'service.name';
16
+ readonly instance: 'service.instance.id';
17
+ readonly version: 'service.version';
18
+ };
19
+ declare const URLAttributes: {
20
+ readonly scheme: 'url.scheme';
21
+ readonly full: 'url.full';
22
+ readonly path: 'url.path';
23
+ readonly query: 'url.query';
24
+ readonly fragment: 'url.fragment';
25
+ };
26
+ //#endregion
27
+ //#region src/semantic-conventions.d.ts
28
+ declare function httpRequestHeaderAttribute(name: string): string;
29
+ declare function httpResponseHeaderAttribute(name: string): string;
30
+ //#endregion
31
+ export { URLAttributes as a, ServiceAttributes as i, httpResponseHeaderAttribute as n, HTTPAttributes as r, httpRequestHeaderAttribute as t };