Repository navigation
[Sentry] - add startup metric - #75044
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| } | ||
|
|
||
| const endTimestamp = Date.now(); | ||
| const duration = startTimestamp ? endTimestamp - startTimestamp : 0; |
There was a problem hiding this comment.
isn't this handled automatically by the span processing pipeline in Sentry? We shouldn't track this by hand for sure.
There was a problem hiding this comment.
yes, this should be handled automatically.
There was a problem hiding this comment.
added it for some additional filtering method, but I agree better you use the default
| OnyxUpdateManager(); | ||
|
|
||
| // Start custom app startup span to measure time until first screen is interactive | ||
| useEffect(() => { |
There was a problem hiding this comment.
This is JS only and shouldn't rely on the value provided here for real measurements.
There was a problem hiding this comment.
where do you think should place the start span? We don't have the native setup for sentry yet 🤔
There was a problem hiding this comment.
I think the closest we can get is just after the Sentry.init in the telemetry file. It still won't be ideal, but will start before the Onyx init and react lifecycles. I added the change in the PR. wdyt?
| enableAutoPerformanceTracing: true, | ||
| enableUserInteractionTracing: true, | ||
| integrations: [navigationIntegration, SentryReact.browserProfilingIntegration(), SentryReact.browserTracingIntegration()], | ||
| integrations: [navigationIntegration, SentryReact.browserProfilingIntegration(), SentryReact.browserTracingIntegration(), Sentry.reactNativeTracingIntegration()], |
There was a problem hiding this comment.
isn't this integration on the default list?
There was a problem hiding this comment.
I double checked and it is enable by defaut, BUT are we sure that when we explicitly set the integration params we are not overriding the default? So something like that will be necessary?
integrations: (defaultIntegrations) => [
...defaultIntegrations,
navigationIntegration,
SentryReact.browserProfilingIntegration(),
SentryReact.browserTracingIntegration()
],
There was a problem hiding this comment.
I'm pretty sure. Mainly because we see traces in Sentry and documentations tells that you should enable new integrations by integrations: [...yourNewIntegrations]
mountiny
left a comment
There was a problem hiding this comment.
Looks good to me overall, what is left to take this out of draft?
|
@bernhardoj 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
This comment has been minimized.
This comment has been minimized.
|
🚧 @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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.2.60-0 🚀
|
|
@rinej do we need to QA this? If yes, can you please repro steps |
|
This is internal QA, I will do it. While logged off
Logged in
|
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.2.60-0 🚀
|
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.2.60-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.2.60-2 🚀
|



Explanation of Change
This PR introduces:
Fixed Issues
$ #75094
PROPOSAL:
Tests
Offline tests
QA Steps
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
MacOS: Desktop