@webex/plugin-meetings 1.153.1 → 1.154.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/dist/common/errors/webex-errors.js +27 -3
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/constants.js +20 -13
- package/dist/constants.js.map +1 -1
- package/dist/meeting/index.js +54 -41
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/request.js +24 -20
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.js +8 -15
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.js +2 -1
- package/dist/meeting/util.js.map +1 -1
- package/dist/meetings/index.js +8 -1
- package/dist/meetings/index.js.map +1 -1
- package/dist/metrics/config.js +3 -1
- package/dist/metrics/config.js.map +1 -1
- package/dist/metrics/index.js +23 -9
- package/dist/metrics/index.js.map +1 -1
- package/dist/peer-connection-manager/index.js +63 -56
- package/dist/peer-connection-manager/index.js.map +1 -1
- package/dist/reconnection-manager/index.js +1 -1
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/roap/handler.js +4 -4
- package/dist/roap/handler.js.map +1 -1
- package/package.json +5 -5
- package/src/common/errors/webex-errors.js +21 -2
- package/src/constants.js +16 -11
- package/src/meeting/index.js +85 -68
- package/src/meeting/request.js +10 -5
- package/src/meeting/state.js +8 -17
- package/src/meeting/util.js +2 -1
- package/src/meetings/index.js +14 -3
- package/src/metrics/config.js +1 -0
- package/src/metrics/index.js +23 -9
- package/src/peer-connection-manager/index.js +61 -60
- package/src/reconnection-manager/index.js +3 -3
- package/src/roap/handler.js +5 -5
- package/test/unit/spec/meeting/index.js +39 -7
- package/test/unit/spec/meeting/request.js +53 -1
- package/test/unit/spec/meeting/utils.js +41 -0
- package/test/unit/spec/meetings/index.js +3 -1
- package/test/unit/spec/metrics/index.js +6 -6
- package/test/unit/spec/peerconnection-manager/index.js +69 -0
package/dist/meeting/index.js
CHANGED
|
@@ -536,10 +536,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
536
536
|
var _this$locusUrl;
|
|
537
537
|
|
|
538
538
|
// Whenever there is a failure when trying to access a user's device
|
|
539
|
-
// report it as an
|
|
539
|
+
// report it as an Behavioral metric
|
|
540
540
|
// This gives visibility into common errors and can help
|
|
541
541
|
// with further troubleshooting
|
|
542
|
-
var metricName = _constants.
|
|
542
|
+
var metricName = _constants.BEHAVIORAL_METRICS.GET_USER_MEDIA_FAILURE;
|
|
543
543
|
var data = {
|
|
544
544
|
correlation_id: _this.correlationId,
|
|
545
545
|
locus_id: (_this$locusUrl = _this.locusUrl) === null || _this$locusUrl === void 0 ? void 0 : _this$locusUrl.split('/').pop(),
|
|
@@ -550,7 +550,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
550
550
|
type: error.name
|
|
551
551
|
};
|
|
552
552
|
|
|
553
|
-
_metrics.default.
|
|
553
|
+
_metrics.default.sendBehavioralMetric(metricName, data, metadata);
|
|
554
554
|
|
|
555
555
|
throw new _media2.default('Unable to retrieve media streams', error);
|
|
556
556
|
});
|
|
@@ -1398,7 +1398,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1398
1398
|
// https:// jira-eng-gpk2.cisco.com/jira/browse/SPARK-240520
|
|
1399
1399
|
// TODO: send custom parameter explaining why the inactivity happened
|
|
1400
1400
|
// refresh , no media or network got dsconnected or something else
|
|
1401
|
-
_metrics.default.
|
|
1401
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.DISCONNECT_DUE_TO_INACTIVITY, {
|
|
1402
1402
|
correlation_id: _this4.correlationId,
|
|
1403
1403
|
locus_id: _this4.locusId
|
|
1404
1404
|
}); // Upload logs on media inactivity
|
|
@@ -2227,7 +2227,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2227
2227
|
}
|
|
2228
2228
|
});
|
|
2229
2229
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.MEDIA_INACTIVITY, function () {
|
|
2230
|
-
_metrics.default.
|
|
2230
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MEETING_MEDIA_INACTIVE, {
|
|
2231
2231
|
correlation_id: _this15.correlationId,
|
|
2232
2232
|
locus_id: _this15.locusId
|
|
2233
2233
|
});
|
|
@@ -2676,17 +2676,20 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2676
2676
|
}, {
|
|
2677
2677
|
key: "parseMeetingInfo",
|
|
2678
2678
|
value: function parseMeetingInfo(meetingInfo) {
|
|
2679
|
-
// MeetingInfo will be undefined for 1:1 calls
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
this.
|
|
2683
|
-
this.
|
|
2679
|
+
var webexMeetingInfo = meetingInfo === null || meetingInfo === void 0 ? void 0 : meetingInfo.body; // MeetingInfo will be undefined for 1:1 calls
|
|
2680
|
+
|
|
2681
|
+
if (webexMeetingInfo && !(meetingInfo.errors && meetingInfo.errors.length > 0)) {
|
|
2682
|
+
this.conversationUrl = webexMeetingInfo.conversationUrl || this.conversationUrl;
|
|
2683
|
+
this.locusUrl = webexMeetingInfo.locusUrl || this.locusUrl;
|
|
2684
|
+
this.setSipUri(this.config.experimental.enableUnifiedMeetings ? webexMeetingInfo.sipUrl : webexMeetingInfo.sipMeetingUri || this.sipUri);
|
|
2684
2685
|
|
|
2685
2686
|
if (this.config.experimental.enableUnifiedMeetings) {
|
|
2686
|
-
this.meetingNumber =
|
|
2687
|
+
this.meetingNumber = webexMeetingInfo.meetingNumber;
|
|
2688
|
+
this.meetingJoinUrl = webexMeetingInfo.meetingJoinUrl;
|
|
2687
2689
|
}
|
|
2688
2690
|
|
|
2689
|
-
this.owner =
|
|
2691
|
+
this.owner = webexMeetingInfo.owner || webexMeetingInfo.hostId || this.owner;
|
|
2692
|
+
this.permissionToken = webexMeetingInfo.permissionToken;
|
|
2690
2693
|
}
|
|
2691
2694
|
}
|
|
2692
2695
|
/**
|
|
@@ -2831,7 +2834,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2831
2834
|
} else {
|
|
2832
2835
|
trackMediaID = null;
|
|
2833
2836
|
|
|
2834
|
-
_metrics.default.
|
|
2837
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MUTE_AUDIO_FAILURE, {
|
|
2835
2838
|
correlation_id: _this20.correlationId,
|
|
2836
2839
|
locus_id: _this20.locusUrl.split('/').pop()
|
|
2837
2840
|
});
|
|
@@ -3265,6 +3268,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3265
3268
|
event: _config.eventType.MERCURY_CONNECTION_RESTORED,
|
|
3266
3269
|
meeting: _this25
|
|
3267
3270
|
});
|
|
3271
|
+
|
|
3272
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MERCURY_CONNECTION_RESTORED, {
|
|
3273
|
+
correlation_id: _this25.correlationId
|
|
3274
|
+
});
|
|
3268
3275
|
}
|
|
3269
3276
|
|
|
3270
3277
|
_this25.hasWebsocketConnected = true;
|
|
@@ -3277,7 +3284,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3277
3284
|
meeting: _this25
|
|
3278
3285
|
});
|
|
3279
3286
|
|
|
3280
|
-
_metrics.default.
|
|
3287
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MERCURY_CONNECTION_FAILURE, {
|
|
3281
3288
|
correlation_id: _this25.correlationId
|
|
3282
3289
|
});
|
|
3283
3290
|
});
|
|
@@ -3365,7 +3372,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3365
3372
|
}
|
|
3366
3373
|
});
|
|
3367
3374
|
}).catch(function (error) {
|
|
3368
|
-
_metrics.default.
|
|
3375
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MUTE_AUDIO_FAILURE, {
|
|
3369
3376
|
correlation_id: _this26.correlationId,
|
|
3370
3377
|
locus_id: _this26.locusUrl.split('/').pop(),
|
|
3371
3378
|
reason: error.message,
|
|
@@ -3418,7 +3425,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3418
3425
|
}
|
|
3419
3426
|
});
|
|
3420
3427
|
}).catch(function (error) {
|
|
3421
|
-
_metrics.default.
|
|
3428
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.UNMUTE_AUDIO_FAILURE, {
|
|
3422
3429
|
correlation_id: _this27.correlationId,
|
|
3423
3430
|
locus_id: _this27.locusUrl.split('/').pop(),
|
|
3424
3431
|
reason: error.message,
|
|
@@ -3470,7 +3477,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3470
3477
|
}
|
|
3471
3478
|
});
|
|
3472
3479
|
}).catch(function (error) {
|
|
3473
|
-
_metrics.default.
|
|
3480
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MUTE_VIDEO_FAILURE, {
|
|
3474
3481
|
correlation_id: _this28.correlationId,
|
|
3475
3482
|
locus_id: _this28.locusUrl.split('/').pop(),
|
|
3476
3483
|
reason: error.message,
|
|
@@ -3522,7 +3529,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3522
3529
|
}
|
|
3523
3530
|
});
|
|
3524
3531
|
}).catch(function (error) {
|
|
3525
|
-
_metrics.default.
|
|
3532
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.UNMUTE_VIDEO_FAILURE, {
|
|
3526
3533
|
correlation_id: _this29.correlationId,
|
|
3527
3534
|
locus_id: _this29.locusUrl.split('/').pop(),
|
|
3528
3535
|
reason: error.message,
|
|
@@ -3593,7 +3600,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3593
3600
|
}).catch(function (error) {
|
|
3594
3601
|
_loggerProxy.default.logger.error('Meeting:index#joinWithMedia --> ', error);
|
|
3595
3602
|
|
|
3596
|
-
_metrics.default.
|
|
3603
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.JOIN_WITH_MEDIA_FAILURE, {
|
|
3597
3604
|
correlation_id: _this30.correlationId,
|
|
3598
3605
|
locus_id: _this30.locusUrl.split('/').pop(),
|
|
3599
3606
|
reason: error.message,
|
|
@@ -3666,7 +3673,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3666
3673
|
|
|
3667
3674
|
_loggerProxy.default.logger.error('Meeting:index#reconnect --> Meeting reconnect failed', error);
|
|
3668
3675
|
|
|
3669
|
-
_metrics.default.
|
|
3676
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MEETING_RECONNECT_FAILURE, {
|
|
3670
3677
|
correlation_id: _this31.correlationId,
|
|
3671
3678
|
locus_id: _this31.locusUrl.split('/').pop(),
|
|
3672
3679
|
reason: error.message,
|
|
@@ -3723,7 +3730,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3723
3730
|
|
|
3724
3731
|
_this32.triggerStopReceivingTranscriptionEvent();
|
|
3725
3732
|
|
|
3726
|
-
_metrics.default.
|
|
3733
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.RECEIVE_TRANSCRIPTION_FAILURE, {
|
|
3727
3734
|
correlation_id: _this32.correlationId,
|
|
3728
3735
|
reason: 'unexpected error: transcription LLM web socket connection error had occured.',
|
|
3729
3736
|
event: event
|
|
@@ -3789,7 +3796,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3789
3796
|
|
|
3790
3797
|
_loggerProxy.default.logger.error("Meeting:index#receiveTranscription --> ".concat(_context2.t0));
|
|
3791
3798
|
|
|
3792
|
-
_metrics.default.
|
|
3799
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.RECEIVE_TRANSCRIPTION_FAILURE, {
|
|
3793
3800
|
correlation_id: this.correlationId,
|
|
3794
3801
|
reason: _context2.t0.message,
|
|
3795
3802
|
stack: _context2.t0.stack
|
|
@@ -3898,10 +3905,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3898
3905
|
}
|
|
3899
3906
|
});
|
|
3900
3907
|
|
|
3901
|
-
_metrics.default.sendOperationalMetric(_constants.METRICS_OPERATIONAL_MEASURES.JOIN_ATTEMPT, {
|
|
3902
|
-
correlation_id: this.correlationId
|
|
3903
|
-
});
|
|
3904
|
-
|
|
3905
3908
|
_loggerProxy.default.logger.log('Meeting:index#join --> Joining a meeting');
|
|
3906
3909
|
|
|
3907
3910
|
if (this.meetingFiniteStateMachine.state === _constants.MEETING_STATE_MACHINE.STATES.ENDED) {
|
|
@@ -3966,6 +3969,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3966
3969
|
}).then(function (join) {
|
|
3967
3970
|
joinSuccess(join);
|
|
3968
3971
|
_this34.deferJoin = undefined;
|
|
3972
|
+
|
|
3973
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.JOIN_SUCCESS, {
|
|
3974
|
+
correlation_id: _this34.correlationId
|
|
3975
|
+
});
|
|
3976
|
+
|
|
3969
3977
|
return join;
|
|
3970
3978
|
}).then( /*#__PURE__*/function () {
|
|
3971
3979
|
var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(join) {
|
|
@@ -4023,7 +4031,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4023
4031
|
_loggerProxy.default.logger.error('Meeting:index#join --> Failed', error); // TODO: change this to error codes and pre defined dictionary
|
|
4024
4032
|
|
|
4025
4033
|
|
|
4026
|
-
_metrics.default.
|
|
4034
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.JOIN_FAILURE, {
|
|
4027
4035
|
correlation_id: _this34.correlationId,
|
|
4028
4036
|
reason: (_error$error = error.error) === null || _error$error === void 0 ? void 0 : _error$error.message,
|
|
4029
4037
|
stack: error.stack
|
|
@@ -4097,7 +4105,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4097
4105
|
}).catch(function (error) {
|
|
4098
4106
|
var _error$error2;
|
|
4099
4107
|
|
|
4100
|
-
_metrics.default.
|
|
4108
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.ADD_DIAL_IN_FAILURE, {
|
|
4101
4109
|
correlation_id: _this35.correlationId,
|
|
4102
4110
|
dial_in_url: _this35.dialInUrl,
|
|
4103
4111
|
locus_id: locusUrl.split('/').pop(),
|
|
@@ -4138,7 +4146,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4138
4146
|
}).catch(function (error) {
|
|
4139
4147
|
var _error$error3;
|
|
4140
4148
|
|
|
4141
|
-
_metrics.default.
|
|
4149
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.ADD_DIAL_OUT_FAILURE, {
|
|
4142
4150
|
correlation_id: _this36.correlationId,
|
|
4143
4151
|
dial_out_url: _this36.dialOutUrl,
|
|
4144
4152
|
locus_id: locusUrl.split('/').pop(),
|
|
@@ -4452,7 +4460,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4452
4460
|
}).catch(function (error) {
|
|
4453
4461
|
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " Error adding media , setting up peerconnection, "), error);
|
|
4454
4462
|
|
|
4455
|
-
_metrics.default.
|
|
4463
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.ADD_MEDIA_FAILURE, {
|
|
4456
4464
|
correlation_id: _this39.correlationId,
|
|
4457
4465
|
locus_id: _this39.locusUrl.split('/').pop(),
|
|
4458
4466
|
reason: error.message,
|
|
@@ -4533,6 +4541,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4533
4541
|
_this39.floorGrantPending = true;
|
|
4534
4542
|
}
|
|
4535
4543
|
|
|
4544
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.ADD_MEDIA_SUCCESS, {
|
|
4545
|
+
correlation_id: _this39.correlationId,
|
|
4546
|
+
locus_id: _this39.locusUrl.split('/').pop()
|
|
4547
|
+
});
|
|
4548
|
+
|
|
4536
4549
|
return _promise.default.resolve();
|
|
4537
4550
|
});
|
|
4538
4551
|
}).catch(function (error) {
|
|
@@ -4551,7 +4564,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4551
4564
|
|
|
4552
4565
|
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " Error adding media failed to initiate PC and send request, "), error);
|
|
4553
4566
|
|
|
4554
|
-
_metrics.default.
|
|
4567
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.ADD_MEDIA_FAILURE, {
|
|
4555
4568
|
correlation_id: _this39.correlationId,
|
|
4556
4569
|
locus_id: _this39.locusUrl.split('/').pop(),
|
|
4557
4570
|
reason: error.message,
|
|
@@ -4669,7 +4682,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4669
4682
|
}).catch(function (error) {
|
|
4670
4683
|
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " Error updatedMedia, "), error);
|
|
4671
4684
|
|
|
4672
|
-
_metrics.default.
|
|
4685
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.UPDATE_MEDIA_FAILURE, {
|
|
4673
4686
|
correlation_id: _this41.correlationId,
|
|
4674
4687
|
locus_id: _this41.locusUrl.split('/').pop(),
|
|
4675
4688
|
reason: error.message,
|
|
@@ -5111,7 +5124,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5111
5124
|
function: 'leave'
|
|
5112
5125
|
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this47);
|
|
5113
5126
|
|
|
5114
|
-
_metrics.default.
|
|
5127
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MEETING_LEAVE_FAILURE, {
|
|
5115
5128
|
correlation_id: _this47.correlationId,
|
|
5116
5129
|
locus_id: _this47.locusUrl.split('/').pop(),
|
|
5117
5130
|
reason: error.message,
|
|
@@ -5168,7 +5181,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5168
5181
|
}).catch(function (error) {
|
|
5169
5182
|
_loggerProxy.default.logger.error('Meeting:index#startWhiteboardShare --> Error ', error);
|
|
5170
5183
|
|
|
5171
|
-
_metrics.default.
|
|
5184
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MEETING_START_WHITEBOARD_SHARE_FAILURE, {
|
|
5172
5185
|
correlation_id: _this48.correlationId,
|
|
5173
5186
|
locus_id: _this48.locusUrl.split('/').pop(),
|
|
5174
5187
|
reason: error.message,
|
|
@@ -5215,7 +5228,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5215
5228
|
}).catch(function (error) {
|
|
5216
5229
|
_loggerProxy.default.logger.error('Meeting:index#stopWhiteboardShare --> Error ', error);
|
|
5217
5230
|
|
|
5218
|
-
_metrics.default.
|
|
5231
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.STOP_WHITEBOARD_SHARE_FAILURE, {
|
|
5219
5232
|
correlation_id: _this49.correlationId,
|
|
5220
5233
|
locus_id: _this49.locusUrl.split('/').pop(),
|
|
5221
5234
|
reason: error.message,
|
|
@@ -5265,7 +5278,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5265
5278
|
}).catch(function (error) {
|
|
5266
5279
|
_loggerProxy.default.logger.error('Meeting:index#share --> Error ', error);
|
|
5267
5280
|
|
|
5268
|
-
_metrics.default.
|
|
5281
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MEETING_SHARE_FAILURE, {
|
|
5269
5282
|
correlation_id: _this50.correlationId,
|
|
5270
5283
|
locus_id: _this50.locusUrl.split('/').pop(),
|
|
5271
5284
|
reason: error.message,
|
|
@@ -5335,7 +5348,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5335
5348
|
}).catch(function (error) {
|
|
5336
5349
|
_loggerProxy.default.logger.error('Meeting:index#stopFloorRequest --> Error ', error);
|
|
5337
5350
|
|
|
5338
|
-
_metrics.default.
|
|
5351
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.STOP_FLOOR_REQUEST_FAILURE, {
|
|
5339
5352
|
correlation_id: _this51.correlationId,
|
|
5340
5353
|
locus_id: _this51.locusUrl.split('/').pop(),
|
|
5341
5354
|
reason: error.message,
|
|
@@ -5672,7 +5685,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5672
5685
|
|
|
5673
5686
|
_loggerProxy.default.logger.error("Meeting:index#setMeetingQuality --> ".concat(error.message));
|
|
5674
5687
|
|
|
5675
|
-
_metrics.default.
|
|
5688
|
+
_metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.SET_MEETING_QUALITY_FAILURE, {
|
|
5676
5689
|
correlation_id: _this54.correlationId,
|
|
5677
5690
|
locus_id: _this54.locusUrl.split('/').pop(),
|
|
5678
5691
|
reason: error.message,
|
|
@@ -5717,12 +5730,12 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5717
5730
|
});
|
|
5718
5731
|
}).catch(function (error) {
|
|
5719
5732
|
// Whenever there is a failure when trying to access a user's display
|
|
5720
|
-
// report it as an
|
|
5733
|
+
// report it as an Behavioral metric
|
|
5721
5734
|
// This gives visibility into common errors and can help
|
|
5722
5735
|
// with further troubleshooting
|
|
5723
5736
|
// This metrics will get erros for getDisplayMedia and share errors for now
|
|
5724
5737
|
// TODO: The getDisplayMedia errors need to be moved inside `media.getDisplayMedia`
|
|
5725
|
-
var metricName = _constants.
|
|
5738
|
+
var metricName = _constants.BEHAVIORAL_METRICS.GET_DISPLAY_MEDIA_FAILURE;
|
|
5726
5739
|
var data = {
|
|
5727
5740
|
correlation_id: _this55.correlationId,
|
|
5728
5741
|
locus_id: _this55.locusUrl.split('/').pop(),
|
|
@@ -5733,7 +5746,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5733
5746
|
type: error.name
|
|
5734
5747
|
};
|
|
5735
5748
|
|
|
5736
|
-
_metrics.default.
|
|
5749
|
+
_metrics.default.sendBehavioralMetric(metricName, data, metadata);
|
|
5737
5750
|
|
|
5738
5751
|
throw new _media2.default('Unable to retrieve display media stream', error);
|
|
5739
5752
|
});
|