-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(calling): adding metrics for bnr #3161
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add all test cases to the PR description section on tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions:
- Have we thought about how we'd track errors in enabling BNR?
- Do we want to track failures in enabling BNR? How will that help us?
- What would the approach be to get this information in metrics?
Please add UT for the new code
@@ -321,6 +321,43 @@ class MetricManager implements IMetricManager { | |||
this.webex.internal.metrics.submitClientMetrics(name, data); | |||
} | |||
} | |||
|
|||
public submitBNRMetric( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see UT changes for this function?
f0cc488
to
af3ee4f
Compare
Raised separate PR as this one was having merge conflicts due to beta to next merge |
COMPLETES #https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-466014
This pull request addresses
Adding metrics to be sent when BNR is enabled/disabled on the call.
by making the following changes
Invoking submitBNRMetric() under dial() API, answer() API and outputTrackUpdateListener that listens for following events:
streamTrack.on("effect:added"
effect.on("enabled"
effect.on("disabled"
Based on the reception of above events track is updated if needed and BNR metrics are sent when the effect is enabled/disabled.
Change Type
The following scenarios where tested
Testcase 1: Enabled BNR and dialed an outbound call. BNR_ENABLED metrics are being sent once dial API is invoked. Disabled the BNR while on the call and BNR_DISABLED metrics are being sent for the same.
Testcase 2: Enabled BNR, triggered an inbound call and answered it. BNR_ENABLED metrics are being sent once answer API is invoked. Disabled the BNR while on the call and BNR_DISABLED metrics are being sent for the same.
Testcase 3: On an ongoing call, enabled and disabled BNR and metrics are sent for each occurrence.
Network logs are attached in the JIRA for each scenario mentioned above.
I certified that
I have read and followed contributing guidelines
I discussed changes with code owners prior to submitting this pull request
I have not skipped any automated checks
All existing and new tests passed
I have updated the documentation accordingly
Make sure to have followed the contributing guidelines before submitting.