-
Notifications
You must be signed in to change notification settings - Fork 355
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
fix(internal-plugin-metrics): condition remote sdp received timestamp updates #4049
Conversation
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
warning eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options. (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) WalkthroughThe pull request introduces modifications to the Changes
Sequence DiagramsequenceDiagram
participant ME as Media Engine
participant CDM as Call Diagnostic Metrics
ME->>CDM: remote-sdp-received
CDM->>CDM: Save first timestamp
ME->>CDM: local-sdp-generated
CDM->>CDM: Clear remote SDP timestamp
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (4)
Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
LGTM
COMPLETES SPARK-601333
This pull request addresses
Fixing the following validation errors related to the
localSDPGenRemoteSDPRecv
property ofclient.media.rx.start
:property value greater than maximum allowed 1200000 localSDPGenRemoteSDPRecv
property value less than minimum allowed 0 localSDPGenRemoteSDPRecv
by making the following changes
The first error is caused by multiple remote SDPs received after the initial local SDP, particularly for transcoded meetings, which causes the timestamps to grow continuously until it exceeds the limit. The fix is to only save the timestamp of the first occurrence of the
client.media-engine.remote-sdp-received
event.The second error is caused by the timestamp for the remote SDP not clearing after a new local SDP is generated. The fix is to clear the timestamp of the
client.media-engine.remote-sdp-received
event whenclient.media-engine.local-sdp-generated
occurs so that a new timestamp will be saved whenclient.media-engine.remote-sdp-received
occurs again.Change Type
The following scenarios were tested
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.
Summary by CodeRabbit