@utk09/ui-observability 0.4.1 → 0.6.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 (103) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +114 -59
  3. package/dist/bus/bus.d.ts +10 -10
  4. package/dist/bus/links.d.ts +1 -1
  5. package/dist/bus-BTMuVkDk.js +378 -0
  6. package/dist/bus-BTMuVkDk.js.map +1 -0
  7. package/dist/bus-ChIXDAWD.cjs +2 -0
  8. package/dist/bus-ChIXDAWD.cjs.map +1 -0
  9. package/dist/capture/network.d.ts +2 -2
  10. package/dist/capture/types.d.ts +10 -10
  11. package/dist/capture/web-vitals.d.ts +7 -4
  12. package/dist/{constants-DVbpJ1tv.js → constants-0-YchbAL.js} +9 -8
  13. package/dist/constants-0-YchbAL.js.map +1 -0
  14. package/dist/constants-TUFcy95w.cjs +2 -0
  15. package/dist/constants-TUFcy95w.cjs.map +1 -0
  16. package/dist/constants.d.ts +55 -40
  17. package/dist/core/breadcrumbs.d.ts +14 -14
  18. package/dist/core/config.d.ts +5 -4
  19. package/dist/core/context.d.ts +2 -2
  20. package/dist/core/diagnostics.d.ts +10 -9
  21. package/dist/core/journey.d.ts +28 -22
  22. package/dist/core/logger.d.ts +29 -10
  23. package/dist/core/pipeline.d.ts +34 -29
  24. package/dist/core/record.d.ts +6 -6
  25. package/dist/core/runtime.d.ts +119 -35
  26. package/dist/core/sampling.d.ts +15 -16
  27. package/dist/core/sender.d.ts +58 -0
  28. package/dist/errors-DRXBRqvm.cjs +3 -0
  29. package/dist/errors-DRXBRqvm.cjs.map +1 -0
  30. package/dist/errors-Dwm2SzBa.js +76 -0
  31. package/dist/errors-Dwm2SzBa.js.map +1 -0
  32. package/dist/index.cjs +1 -3
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.d.ts +6 -5
  35. package/dist/index.js +476 -2247
  36. package/dist/index.js.map +1 -1
  37. package/dist/indexeddb-storage-B5dwq4hW.cjs +2 -0
  38. package/dist/indexeddb-storage-B5dwq4hW.cjs.map +1 -0
  39. package/dist/{indexeddb-storage-B6uqejZb.js → indexeddb-storage-DjY4Ml6t.js} +18 -22
  40. package/dist/indexeddb-storage-DjY4Ml6t.js.map +1 -0
  41. package/dist/interactions-DVom6eYn.cjs +2 -0
  42. package/dist/interactions-DVom6eYn.cjs.map +1 -0
  43. package/dist/interactions-DZmLu7l2.js +67 -0
  44. package/dist/interactions-DZmLu7l2.js.map +1 -0
  45. package/dist/models/batch.d.ts +12 -9
  46. package/dist/models/bus.d.ts +12 -13
  47. package/dist/models/config.d.ts +84 -49
  48. package/dist/models/log-record.d.ts +12 -10
  49. package/dist/models/serializer.d.ts +3 -2
  50. package/dist/models/storage.d.ts +2 -2
  51. package/dist/network-C4d2uw2Z.js +111 -0
  52. package/dist/network-C4d2uw2Z.js.map +1 -0
  53. package/dist/network-CuqWadNn.cjs +2 -0
  54. package/dist/network-CuqWadNn.cjs.map +1 -0
  55. package/dist/platform-CXio0W2n.cjs +2 -0
  56. package/dist/platform-CXio0W2n.cjs.map +1 -0
  57. package/dist/platform-CY8S3hUs.js +48 -0
  58. package/dist/platform-CY8S3hUs.js.map +1 -0
  59. package/dist/sampling-CEthcmEX.cjs +2 -0
  60. package/dist/sampling-CEthcmEX.cjs.map +1 -0
  61. package/dist/sampling-CJsI_24L.js +251 -0
  62. package/dist/sampling-CJsI_24L.js.map +1 -0
  63. package/dist/sender-ByFAkXVd.cjs +3 -0
  64. package/dist/sender-ByFAkXVd.cjs.map +1 -0
  65. package/dist/sender-dpvR_bHM.js +907 -0
  66. package/dist/sender-dpvR_bHM.js.map +1 -0
  67. package/dist/storage/emergency-queue.d.ts +2 -2
  68. package/dist/storage/factory.d.ts +2 -1
  69. package/dist/storage/idb-driver.d.ts +19 -19
  70. package/dist/storage/indexeddb-storage.d.ts +18 -17
  71. package/dist/storage/keys.d.ts +1 -1
  72. package/dist/storage/local-storage.d.ts +19 -18
  73. package/dist/storage/memory-storage.d.ts +12 -11
  74. package/dist/transport/compression.d.ts +2 -2
  75. package/dist/transport/errors.d.ts +8 -7
  76. package/dist/transport/exit-flush.d.ts +27 -24
  77. package/dist/transport/http-transport.d.ts +19 -10
  78. package/dist/transport/retry-engine.d.ts +33 -28
  79. package/dist/transport/serializers/ecs.d.ts +1 -1
  80. package/dist/transport/serializers/otlp.d.ts +1 -1
  81. package/dist/transport/serializers/select.d.ts +8 -0
  82. package/dist/unref-16maCyKA.js +8 -0
  83. package/dist/unref-16maCyKA.js.map +1 -0
  84. package/dist/unref-CU9Nyz_9.cjs +2 -0
  85. package/dist/unref-CU9Nyz_9.cjs.map +1 -0
  86. package/dist/utils/console.d.ts +11 -3
  87. package/dist/utils/identity.d.ts +53 -8
  88. package/dist/utils/lock.d.ts +4 -4
  89. package/dist/utils/platform.d.ts +5 -3
  90. package/dist/utils/sanitize.d.ts +5 -2
  91. package/dist/utils/sequence.d.ts +2 -2
  92. package/dist/utils/tracing.d.ts +14 -12
  93. package/dist/web-vitals-B2FYsEAU.cjs +2 -0
  94. package/dist/web-vitals-B2FYsEAU.cjs.map +1 -0
  95. package/dist/web-vitals-DHZ0yA_H.js +51 -0
  96. package/dist/web-vitals-DHZ0yA_H.js.map +1 -0
  97. package/package.json +21 -11
  98. package/dist/constants-DVbpJ1tv.js.map +0 -1
  99. package/dist/constants-tQpoTzkY.cjs +0 -2
  100. package/dist/constants-tQpoTzkY.cjs.map +0 -1
  101. package/dist/indexeddb-storage-B6uqejZb.js.map +0 -1
  102. package/dist/indexeddb-storage-CgT1GLYj.cjs +0 -2
  103. package/dist/indexeddb-storage-CgT1GLYj.cjs.map +0 -1
package/dist/index.d.ts CHANGED
@@ -91,7 +91,7 @@ export declare function timeSync<T>(label: string, fn: () => T, attributes?: Rec
91
91
  */
92
92
  export declare function timeAsync<T>(label: string, fn: () => Promise<T>, attributes?: Record<string, unknown>): Promise<T>;
93
93
  /**
94
- * Sets a key-value pair on ambient context included in subsequent records.
94
+ * Sets a key-value pair on the ambient context. All later records include it.
95
95
  * @param key Attribute key.
96
96
  * @param value Attribute value.
97
97
  */
@@ -130,7 +130,7 @@ export declare function getJourneyToken(): string | undefined;
130
130
  /**
131
131
  * Adopts a serialized journey token into this application realm.
132
132
  * @param token Serialized journey token.
133
- * @returns True if token was valid and successfully adopted.
133
+ * @returns True if the token is valid and the runtime adopts it.
134
134
  */
135
135
  export declare function adoptJourney(token: string): boolean;
136
136
  /**
@@ -147,12 +147,13 @@ export declare function startTrace(): void;
147
147
  export declare function getTraceHeaders(): Record<string, string>;
148
148
  /**
149
149
  * Flushes all pending log batches across pipeline streams.
150
- * @returns Promise resolving once queued batches are processed.
150
+ * @returns Promise that resolves after the pipeline processes the queued batches.
151
151
  */
152
152
  export declare function flush(): Promise<void>;
153
153
  /**
154
154
  * Counts the batches waiting in storage for delivery.
155
- * @returns Promise resolving to the number of stored batches. A forwarder reports 0, because it persists nothing.
155
+ * @returns Promise resolving to the number of stored batches. A forwarder reports 0.
156
+ * A forwarder does not store batches.
156
157
  */
157
158
  export declare function getQueueDepth(): Promise<number>;
158
159
  /**
@@ -161,7 +162,7 @@ export declare function getQueueDepth(): Promise<number>;
161
162
  */
162
163
  export declare function getDiagnosticCounters(): Record<string, number>;
163
164
  /**
164
- * Flushes pending records and tears down all runtime subsystems.
165
+ * Flushes pending records and stops all runtime subsystems.
165
166
  * @returns Promise resolving once shutdown completes.
166
167
  */
167
168
  export declare function shutdown(): Promise<void>;