You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a link to the affected event from your Sentry account
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node(raven for node)
other:
Version:
5.21.4
Description
We want to embed sentry in the JS library. Our client may already using sentry on their site so our library initialize its own browser client like below:
Looks like userAgent integration depends on so we cannot send userAgent without using currenthub. We don't want to override currentHub because we are library and not override any of client's state.
Can UserAgent integration and other default integration not depend on currentHub?
The text was updated successfully, but these errors were encountered:
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
We want to embed sentry in the JS library. Our client may already using sentry on their site so our library initialize its own browser client like below:
We noticed userAgent is missing in sentry and found closed issue #1764 and https://github.com/getsentry/sentry-javascript/blob/master/packages/browser/src/integrations/useragent.ts#L24
Looks like userAgent integration depends on so we cannot send userAgent without using currenthub. We don't want to override currentHub because we are library and not override any of client's state.
Can UserAgent integration and other default integration not depend on currentHub?
The text was updated successfully, but these errors were encountered: