Hey,
We started to use sentry at our organization,
We have some projects at react, and angular that using sentry.io (the main is for performance, not issues, browser tracing) and it works great.
I have an issue to implement it on our monorepo,
one of the project he is a monorepo (all packages are reacts) that using lerna.
The Main app using sentry init before
ReactDOM.render(, document.getElementById(‘root’));
with:
Sentry.init({
dsn: SENTRY_DSN_KEY,
autoSessionTracking: true,
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 1.0,
environment: process.env.NODE_ENV,
});
const userEmail = getUserEmail();
const userId = getUserId();
Sentry.setUser({email: userEmail,id: userId});
the other package has another dsn with the same init , just another dsn key.
the last Sentry.init win.
we are importing
import * as Sentry from '@sentry/react'; import {Integrations} from '@sentry/tracing';
I tried to use hubs , but its works only for errors. our main focus is performance .
btw, the app using graphql - apollo client also.
how can I run 2 instances of sentry with diff dsn key , per project?
thanks.