-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
Package + Version
- [ 5.15.0]
@sentry/browser - [ 5.15.0]
@sentry/hub
Description
On Sentry we don't get browser tags (browser, os and device data) on events since the update of @sentry/browser to version 5.15.0. It works with version 5.14.2.
In the request payload, the request key doesn't exist anymore, so useragent isn't sent.
Sentry is initialized creating manually new BrowserClient & new Hub. Initializating Sentry with Sentry.init fixes the problem, but we intend to have multiple initialization on the page so this is not a solution.
const integrations: Integration[] = [...defaultIntegrations, new ExtraErrorData(), new Dedupe()];
const environment = guessEnvironment();
if (environment !== ENV.PRODUCTION) {
integrations.push(new Debug());
}
const client = new BrowserClient({
dsn: '******,
release: guessRelease(),
environment,
integrations,
enabled: true,
});
hub = new Hub(client);
makeMain(hub);Metadata
Metadata
Assignees
Labels
No labels