@webex/internal-plugin-metrics 3.12.0-next.34 → 3.12.0-next.35
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/dist/call-diagnostic/call-diagnostic-metrics-latencies.js +571 -15
- package/dist/call-diagnostic/call-diagnostic-metrics-latencies.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/metrics.js +1 -1
- package/dist/metrics.types.js +4 -0
- package/dist/metrics.types.js.map +1 -1
- package/dist/types/call-diagnostic/call-diagnostic-metrics-latencies.d.ts +199 -5
- package/dist/types/index.d.ts +2 -2
- package/dist/types/metrics.types.d.ts +4 -2
- package/package.json +2 -2
- package/src/call-diagnostic/call-diagnostic-metrics-latencies.ts +661 -5
- package/src/index.ts +2 -0
- package/src/metrics.types.ts +15 -2
- package/test/unit/spec/call-diagnostic/call-diagnostic-metrics-latencies.ts +1192 -16
package/src/index.ts
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
SubmitMQE,
|
|
20
20
|
PreComputedLatencies,
|
|
21
21
|
SubmitFeatureEvent,
|
|
22
|
+
LocusSyncLatencyEventName,
|
|
22
23
|
} from './metrics.types';
|
|
23
24
|
import * as CALL_DIAGNOSTIC_CONFIG from './call-diagnostic/config';
|
|
24
25
|
import * as CallDiagnosticUtils from './call-diagnostic/call-diagnostic-metrics.util';
|
|
@@ -65,4 +66,5 @@ export type {
|
|
|
65
66
|
SubmitBusinessEvent,
|
|
66
67
|
PreComputedLatencies,
|
|
67
68
|
SubmitFeatureEvent,
|
|
69
|
+
LocusSyncLatencyEventName,
|
|
68
70
|
};
|
package/src/metrics.types.ts
CHANGED
|
@@ -149,6 +149,17 @@ export type SubmitMQEOptions = {
|
|
|
149
149
|
globalMeetingId?: string;
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
+
export const LOCUS_SYNC_LATENCY_EVENT_NAMES = [
|
|
153
|
+
'internal.client.locus.sync.start',
|
|
154
|
+
'internal.client.locus.hashtree.request',
|
|
155
|
+
'internal.client.locus.hashtree.response',
|
|
156
|
+
'internal.client.locus.sync.request',
|
|
157
|
+
'internal.client.locus.sync.response',
|
|
158
|
+
'internal.client.locus.sync.message.received',
|
|
159
|
+
] as const;
|
|
160
|
+
|
|
161
|
+
export type LocusSyncLatencyEventName = (typeof LOCUS_SYNC_LATENCY_EVENT_NAMES)[number];
|
|
162
|
+
|
|
152
163
|
export type InternalEvent = {
|
|
153
164
|
name:
|
|
154
165
|
| 'internal.client.meetinginfo.request'
|
|
@@ -162,7 +173,8 @@ export type InternalEvent = {
|
|
|
162
173
|
| 'internal.client.add-media.turn-discovery.start'
|
|
163
174
|
| 'internal.client.add-media.turn-discovery.end'
|
|
164
175
|
| 'internal.client.share.initiated'
|
|
165
|
-
| 'internal.client.share.stopped'
|
|
176
|
+
| 'internal.client.share.stopped'
|
|
177
|
+
| LocusSyncLatencyEventName;
|
|
166
178
|
|
|
167
179
|
payload?: never;
|
|
168
180
|
options?: never;
|
|
@@ -324,7 +336,8 @@ export type PreComputedLatencies =
|
|
|
324
336
|
| 'internal.get.u2c.time'
|
|
325
337
|
| 'internal.call.init.join.req'
|
|
326
338
|
| 'internal.other.app.api.time'
|
|
327
|
-
| 'internal.api.fetch.intelligence.models'
|
|
339
|
+
| 'internal.api.fetch.intelligence.models'
|
|
340
|
+
| 'internal.client.locus.sync.random.backoff';
|
|
328
341
|
|
|
329
342
|
export interface IdType {
|
|
330
343
|
meetingId?: string;
|