-
Notifications
You must be signed in to change notification settings - Fork 354
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
Sentry: add more env context on errors #386
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 9062bdc The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Screenshots: ✅
There are no changes in the screenshots for this PR. If this is expected, you are good to go. |
562f369
to
3b2a936
Compare
3b2a936
to
e03eea9
Compare
e03eea9
to
28cc23a
Compare
Codecov Report
@@ Coverage Diff @@
## develop #386 +/- ##
========================================
Coverage 47.98% 47.98%
========================================
Files 607 607
Lines 26954 26954
Branches 6897 6897
========================================
Hits 12935 12935
Misses 13959 13959
Partials 60 60
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
28cc23a
to
ff48eae
Compare
ff48eae
to
dbee373
Compare
dbee373
to
3c03cc8
Compare
3c03cc8
to
d4e56f2
Compare
d4e56f2
to
c6fa222
Compare
14fb036
to
bc86070
Compare
bc86070
to
74196c4
Compare
74196c4
to
9062bdc
Compare
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 👍
// We need to wait firebase to load the data and then we set once for all the tags | ||
setTimeout(syncTheTags, 5000); | ||
// We also try to regularly update them so we are sure to get the correct tags (as these are dynamic) | ||
setInterval(syncTheTags, 60000); |
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.
I understand that this component is high up the tree, and will likely not re-render often but if for some reason it does we really need to return a cleanup function that will clear the interval (and the timeout, even though it's less critical).
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.
@@ -24,11 +24,14 @@ import * as Sentry from "@sentry/react-native"; | |||
import Config from "react-native-config"; | |||
import VersionNumber from "react-native-version-number"; | |||
|
|||
import { getEnv } from "@ledgerhq/live-common/lib/env"; |
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.
since the common module is now transpiled to esm it would be better to not rely on the commonjs bundle @ledgerhq/live-common/lib/env
=> @ledgerhq/live-common/env
📝 Description
On Sentry, we currently don't know if any experimental OR feature flag has been enabled in context of an error, which is very valuable to know about.
Trade-off: this works with "polling". The current implementation will regularly sync the tags so they are always correct when an error arise.
This PR only do this on LLM as the LLD PR isn't merged there, but we'll eventually also apply the same idea to LLD.
❓ Context
✅ Checklist
📸 Demo
We can see the env and the feature flags
🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.