-
Not sure which one to use where 😅 Sentry.init({
spotlight: process.env.NODE_ENV === 'development'
// vs
integrations: [Sentry.spotlightIntegration()]
}); |
Beta Was this translation helpful? Give feedback.
Answered by
BYK
Oct 8, 2024
Replies: 1 comment
-
Well, this is more of a question/issue for getsentry/sentry-javascript repo. That said they are equivalent :) Setting something on The special case is for the browser SDK as we chose not to include the Spotlight integration in the main bundle in the interest of smaller default bundle sizes. I'm looking into ways of being able to use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BYK
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, this is more of a question/issue for getsentry/sentry-javascript repo. That said they are equivalent :)
Setting something on
spotlight
enables the integration with the correct values so you just need that.The special case is for the browser SDK as we chose not to include the Spotlight integration in the main bundle in the interest of smaller default bundle sizes. I'm looking into ways of being able to use
spotlight: true
there too with some lazy loading magic.