Skip to content

Browser tags not sent anymore with BrowserClient initialization #2678

@Mattgic

Description

@Mattgic

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions