sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Multiple DSNs

Open sahilanguralla opened this issue 7 years ago • 2 comments

  • [X] Review the documentation: https://docs.sentry.io/
  • [X] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
  • [X] Use the latest release: https://github.com/getsentry/sentry-javascript/releases

Package + Version

  • [X] @sentry/browser
  • [ ] @sentry/node
  • [ ] raven-js
  • [ ] raven-node (raven for node)
  • [ ] other:

Version:

4.4.2

Description

I have two javascript bundles that get loaded on same domain one by one. Both are maintained and versioned separately. Is there any way I can initialize two sentry instances separately for both bundles and send errors to respective DSNs?

sahilanguralla avatar Jan 07 '19 11:01 sahilanguralla

Hope this example helps: https://codesandbox.io/s/l7qrkjn7nm

HazAT avatar Jan 11 '19 10:01 HazAT

+1

Hobart2967 avatar Jul 08 '22 09:07 Hobart2967