Conversation
|
@ZhenjaHorbach 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] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| */ | ||
| function markOpenReportEnd(reportId: string) { | ||
| endSpan(`${CONST.TELEMETRY.SPAN_OPEN_REPORT}_${reportId}`); | ||
| function markOpenReportEnd(reportId: string, isTransactionThread?: boolean, isOneTransactionThread?: boolean) { |
There was a problem hiding this comment.
I think this is the only part of the PR I don't like 😅 Can we at least untangle the if/else blocks so it early returns instead of nesting the statements?
|
@elirangoshen |
I don't think, what do you think @rlinoz ? |
| function markOpenReportEnd(reportId: string) { | ||
| endSpan(`${CONST.TELEMETRY.SPAN_OPEN_REPORT}_${reportId}`); | ||
| function markOpenReportEnd(reportId: string, isTransactionThread?: boolean, isOneTransactionThread?: boolean) { | ||
| const transactionThreadSpanId = `${CONST.TELEMETRY.SPAN_OPEN_TRANSACTION_THREAD}_${reportId}`; |
There was a problem hiding this comment.
I think if we add more attributes to the span we don't need the new span name, unless there is really a need for it.
Having the attributes below should allow us to filter any specific report we want I think..
isTransactionThread
isOneTransactionReport
report.type
There was a problem hiding this comment.
I thought about it , yes its better this way ill modify it
There was a problem hiding this comment.
Ok I modified it and added screeshot :)
| function markOpenReportEnd(reportId: string) { | ||
| endSpan(`${CONST.TELEMETRY.SPAN_OPEN_REPORT}_${reportId}`); | ||
| function markOpenReportEnd(reportId: string, isTransactionThread?: boolean, isOneTransactionThread?: boolean) { | ||
| let reportType = 'report'; |
There was a problem hiding this comment.
Sure I modified it as well
rlinoz
left a comment
There was a problem hiding this comment.
Looks great, thanks!
Lint is failing though @elirangoshen
yes I fixed that now |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
✋ 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.3.0-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.0-8 🚀
|
Explanation of Change
Fixed Issues
$#78953
PROPOSAL: This PR adding report transaction thread events to sentry tracking
it also adding attribute in case is it one report transaction
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Since its only adding tracking to sentry, you can verify open reports is working properly
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: mWeb Safari
MacOS: Chrome / Safari