-
Notifications
You must be signed in to change notification settings - Fork 396
feat(jmt): update getClientJMT calculations #4806
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
base: next
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -521,11 +521,23 @@ export default class CallDiagnosticLatencies extends WebexPlugin { | |
| * @returns - latency | ||
| */ | ||
| public getClientJMT() { | ||
| const interstitialToJoinOk = this.getInterstitialToJoinOK(); | ||
| const joinConfJMT = this.getJoinConfJMT(); | ||
| const clickToInterstitialForClientJmt = this.latencyTimestamps.get( | ||
| 'internal.click.to.interstitial.for.client.jmt' | ||
| ); | ||
|
Comment on lines
+524
to
+526
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The new Useful? React with 👍 / 👎. |
||
| const interstitialJoinToLocusJoinRequest = this.getDiffBetweenTimestamps( | ||
| 'internal.client.interstitial-window.click.joinbutton', | ||
| 'client.locus.join.request' | ||
| ); | ||
|
|
||
| if (typeof interstitialToJoinOk === 'number' && typeof joinConfJMT === 'number') { | ||
| return clamp(interstitialToJoinOk - joinConfJMT, 0, this.MAX_INTEGER); | ||
| if ( | ||
| typeof clickToInterstitialForClientJmt === 'number' && | ||
| typeof interstitialJoinToLocusJoinRequest === 'number' | ||
| ) { | ||
| return clamp( | ||
| clickToInterstitialForClientJmt + interstitialJoinToLocusJoinRequest, | ||
| 0, | ||
| this.MAX_INTEGER | ||
| ); | ||
| } | ||
|
|
||
| return undefined; | ||
|
|
||
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.
getClientJMT()now depends onlatencyTimestamps.get('internal.click.to.interstitial.for.client.jmt'), but this synthetic key is not populated by the normal event-ingestion path in this repo (timestamps are saved from submitted event names innew-metrics.ts), and a repo-wide search shows this key only appears in this method and its unit test. In normalclient.locus.join.responseprocessing (call-diagnostic-metrics.util.ts), this makesgetClientJMT()returnundefined, sojoinTimes.clientJmtis no longer produced for existing integrations unless they add a new out-of-band timestamp write.Useful? React with 👍 / 👎.