@vindral/web-sdk 2.0.25 → 2.0.26
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/index.d.ts +5 -1
- package/package.json +1 -1
- package/web-sdk.esm.js +1 -1
- package/web-sdk.umd.js +1 -1
package/index.d.ts
CHANGED
|
@@ -1275,6 +1275,9 @@ interface FlushOptions {
|
|
|
1275
1275
|
isFinal?: boolean;
|
|
1276
1276
|
initiator: StatsInitiator;
|
|
1277
1277
|
}
|
|
1278
|
+
interface TelemetryStatisticsSource {
|
|
1279
|
+
getStatistics(): Statistics;
|
|
1280
|
+
}
|
|
1278
1281
|
interface TelemetryModuleListeners {
|
|
1279
1282
|
["visibilitystate"]: VisibilityState;
|
|
1280
1283
|
["pagehide"]: PageTransitionEvent;
|
|
@@ -1290,6 +1293,7 @@ declare class TelemetryModule {
|
|
|
1290
1293
|
private emitter;
|
|
1291
1294
|
private options;
|
|
1292
1295
|
private runtimeInfo;
|
|
1296
|
+
private statisticsSource;
|
|
1293
1297
|
private unsentLines;
|
|
1294
1298
|
private retries;
|
|
1295
1299
|
private errorCount;
|
|
@@ -1297,7 +1301,7 @@ declare class TelemetryModule {
|
|
|
1297
1301
|
private statsCount;
|
|
1298
1302
|
private constructor();
|
|
1299
1303
|
unload: () => void;
|
|
1300
|
-
static create: (logger: Logger, emitter: Emitter<TelemetryModuleListeners, unknown>, options: TelemetryModuleOptions, runtimeInfo: () => Record<string, unknown
|
|
1304
|
+
static create: (logger: Logger, emitter: Emitter<TelemetryModuleListeners, unknown>, options: TelemetryModuleOptions, runtimeInfo: () => Record<string, unknown>, statisticsSource: TelemetryStatisticsSource) => TelemetryModule;
|
|
1301
1305
|
load: () => void;
|
|
1302
1306
|
addStats: ({ isFinal, initiator }?: FlushOptions, extra?: Record<string, unknown>) => void;
|
|
1303
1307
|
addEvent: (event: TelemetryEvent) => void;
|
package/package.json
CHANGED