@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.
- package/CHANGELOG.md +63 -0
- package/README.md +114 -59
- package/dist/bus/bus.d.ts +10 -10
- package/dist/bus/links.d.ts +1 -1
- package/dist/bus-BTMuVkDk.js +378 -0
- package/dist/bus-BTMuVkDk.js.map +1 -0
- package/dist/bus-ChIXDAWD.cjs +2 -0
- package/dist/bus-ChIXDAWD.cjs.map +1 -0
- package/dist/capture/network.d.ts +2 -2
- package/dist/capture/types.d.ts +10 -10
- package/dist/capture/web-vitals.d.ts +7 -4
- package/dist/{constants-DVbpJ1tv.js → constants-0-YchbAL.js} +9 -8
- package/dist/constants-0-YchbAL.js.map +1 -0
- package/dist/constants-TUFcy95w.cjs +2 -0
- package/dist/constants-TUFcy95w.cjs.map +1 -0
- package/dist/constants.d.ts +55 -40
- package/dist/core/breadcrumbs.d.ts +14 -14
- package/dist/core/config.d.ts +5 -4
- package/dist/core/context.d.ts +2 -2
- package/dist/core/diagnostics.d.ts +10 -9
- package/dist/core/journey.d.ts +28 -22
- package/dist/core/logger.d.ts +29 -10
- package/dist/core/pipeline.d.ts +34 -29
- package/dist/core/record.d.ts +6 -6
- package/dist/core/runtime.d.ts +119 -35
- package/dist/core/sampling.d.ts +15 -16
- package/dist/core/sender.d.ts +58 -0
- package/dist/errors-DRXBRqvm.cjs +3 -0
- package/dist/errors-DRXBRqvm.cjs.map +1 -0
- package/dist/errors-Dwm2SzBa.js +76 -0
- package/dist/errors-Dwm2SzBa.js.map +1 -0
- package/dist/index.cjs +1 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.js +476 -2247
- package/dist/index.js.map +1 -1
- package/dist/indexeddb-storage-B5dwq4hW.cjs +2 -0
- package/dist/indexeddb-storage-B5dwq4hW.cjs.map +1 -0
- package/dist/{indexeddb-storage-B6uqejZb.js → indexeddb-storage-DjY4Ml6t.js} +18 -22
- package/dist/indexeddb-storage-DjY4Ml6t.js.map +1 -0
- package/dist/interactions-DVom6eYn.cjs +2 -0
- package/dist/interactions-DVom6eYn.cjs.map +1 -0
- package/dist/interactions-DZmLu7l2.js +67 -0
- package/dist/interactions-DZmLu7l2.js.map +1 -0
- package/dist/models/batch.d.ts +12 -9
- package/dist/models/bus.d.ts +12 -13
- package/dist/models/config.d.ts +84 -49
- package/dist/models/log-record.d.ts +12 -10
- package/dist/models/serializer.d.ts +3 -2
- package/dist/models/storage.d.ts +2 -2
- package/dist/network-C4d2uw2Z.js +111 -0
- package/dist/network-C4d2uw2Z.js.map +1 -0
- package/dist/network-CuqWadNn.cjs +2 -0
- package/dist/network-CuqWadNn.cjs.map +1 -0
- package/dist/platform-CXio0W2n.cjs +2 -0
- package/dist/platform-CXio0W2n.cjs.map +1 -0
- package/dist/platform-CY8S3hUs.js +48 -0
- package/dist/platform-CY8S3hUs.js.map +1 -0
- package/dist/sampling-CEthcmEX.cjs +2 -0
- package/dist/sampling-CEthcmEX.cjs.map +1 -0
- package/dist/sampling-CJsI_24L.js +251 -0
- package/dist/sampling-CJsI_24L.js.map +1 -0
- package/dist/sender-ByFAkXVd.cjs +3 -0
- package/dist/sender-ByFAkXVd.cjs.map +1 -0
- package/dist/sender-dpvR_bHM.js +907 -0
- package/dist/sender-dpvR_bHM.js.map +1 -0
- package/dist/storage/emergency-queue.d.ts +2 -2
- package/dist/storage/factory.d.ts +2 -1
- package/dist/storage/idb-driver.d.ts +19 -19
- package/dist/storage/indexeddb-storage.d.ts +18 -17
- package/dist/storage/keys.d.ts +1 -1
- package/dist/storage/local-storage.d.ts +19 -18
- package/dist/storage/memory-storage.d.ts +12 -11
- package/dist/transport/compression.d.ts +2 -2
- package/dist/transport/errors.d.ts +8 -7
- package/dist/transport/exit-flush.d.ts +27 -24
- package/dist/transport/http-transport.d.ts +19 -10
- package/dist/transport/retry-engine.d.ts +33 -28
- package/dist/transport/serializers/ecs.d.ts +1 -1
- package/dist/transport/serializers/otlp.d.ts +1 -1
- package/dist/transport/serializers/select.d.ts +8 -0
- package/dist/unref-16maCyKA.js +8 -0
- package/dist/unref-16maCyKA.js.map +1 -0
- package/dist/unref-CU9Nyz_9.cjs +2 -0
- package/dist/unref-CU9Nyz_9.cjs.map +1 -0
- package/dist/utils/console.d.ts +11 -3
- package/dist/utils/identity.d.ts +53 -8
- package/dist/utils/lock.d.ts +4 -4
- package/dist/utils/platform.d.ts +5 -3
- package/dist/utils/sanitize.d.ts +5 -2
- package/dist/utils/sequence.d.ts +2 -2
- package/dist/utils/tracing.d.ts +14 -12
- package/dist/web-vitals-B2FYsEAU.cjs +2 -0
- package/dist/web-vitals-B2FYsEAU.cjs.map +1 -0
- package/dist/web-vitals-DHZ0yA_H.js +51 -0
- package/dist/web-vitals-DHZ0yA_H.js.map +1 -0
- package/package.json +21 -11
- package/dist/constants-DVbpJ1tv.js.map +0 -1
- package/dist/constants-tQpoTzkY.cjs +0 -2
- package/dist/constants-tQpoTzkY.cjs.map +0 -1
- package/dist/indexeddb-storage-B6uqejZb.js.map +0 -1
- package/dist/indexeddb-storage-CgT1GLYj.cjs +0 -2
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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>;
|