[NoQA] [Sentry] Enhance OpenReport metrics span with new attributes#75172
[NoQA] [Sentry] Enhance OpenReport metrics span with new attributes#75172rlinoz merged 16 commits intoExpensify:mainfrom
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@parasharrajat Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@rlinoz @mountiny @adhorodyski Hi, I've created small PR that adds some props to |
|
eslint fails but this comes from |
| const reportIDMatch = route.match(/^(?:search\/)?r\/(\w+)/); | ||
| if (reportIDMatch?.at(1)) { | ||
| const reportID = reportIDMatch.at(1); | ||
| const spanId = `${CONST.TELEMETRY.SPAN_OPEN_REPORT}_${reportID}`; |
There was a problem hiding this comment.
I know this was already the case before, but if we set the reportID in the spanId we will never cancel the previous one if someone clicks on a report and clicks on another report before this one loads no?
There was a problem hiding this comment.
Yes, this is not catched edge case. I'm currently trying to resolve this
| let spanName = '/r/*'; | ||
| if (route.startsWith('search/r/')) { | ||
| spanName = '/search/r/*'; | ||
| } else if (route.startsWith('e/')) { |
There was a problem hiding this comment.
This PR adds e/ urls.
I need to verify if this flow works as this is something new
|
🚧 @rlinoz has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.2.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.63-8 🚀
|

Explanation of Change
This PR just add some attributes to
OpenReportspans.Fixed Issues
$ #74132
PROPOSAL:
Tests
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
ios.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
deksto.mov