-
Notifications
You must be signed in to change notification settings - Fork 11
Conversation
@colleenmcginnis I'd like to include this in the next release, if you don't mind 👀 |
@@ -7,6 +7,12 @@ import Icon from '@mapbox/mr-ui/icon'; | |||
import * as Sentry from '@sentry/browser'; | |||
|
|||
const anonymousId = uuidv4(); // creates an anonymousId fallback if user is not logged or we cant get their info | |||
const environment = |
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 don't understand what the resulting environment
does in line 48, but maybe it's just that I don't understand how Sentry.init()
works. 🤔
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.
@colleenmcginnis I can see how it's not clear as it's using shorthand on line 48. We're setting the key environment
in the Sentry.init object to the value of environment
as declared here. Which could also look like this (but when the value and key are the same, you can set the variable without having a key/value pair):
Sentry.init({
dsn: this.props.feedbackSentryDsn,
environment: environment
});
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.
⭐️
* master: Collapse grayed lines in code block (#206) Add a tag component with themes (#216) Add new related page component (#213) Rework Notes themes (#202) Add "tag" option to second and third level headings (#212) Update style of BetaFlag (#207) Add IE11 compatibility for the `Search` component (#203)
This PR:
section
andpreferredLanguage
(this will prevent the tag value ofundefined
if the values are unset)feedbackSentryDsn
to accept boolean (false) to disable sending text feedback to Sentry (this is added with Platform team in mind)🐌