Closed AndreyKomin closed 4 years ago
But that works for setTag
:
Sentry.configureScope(scope => {
scope.setTag('User ID', userId)
})
You cannot call configureScope
before init
.
@kamilogorek Thanks!
This is an excellent issue.
@kamilogorek do you think it's possible to add warning if the developer tries to call configureScope
before init
?
Definitely not in this major version, as it'd be expectations breaking change. However, if you think it'd be a useful thing, feel free to open a new issue detailing your usecase.
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
Use it like here:
Result: