@sentry/tracing#Integrations JavaScript Examples
The following examples show how to use
@sentry/tracing#Integrations.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: sentry.jsx From ResoBin with MIT License | 6 votes |
initSentry = () => {
if (
process.env.NODE_ENV === 'production' &&
process.env.REACT_APP_SENTRY_DSN
) {
Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN,
autoSessionTracking: false,
environment: process.env.NODE_ENV,
release: `${process.env.REACT_APP_NAME}@${process.env.npm_package_version}`,
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 0.1,
})
}
}
Example #2
Source File: index.js From saasgear with MIT License | 5 votes |
Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 1.0,
});
Example #3
Source File: index.jsx From simplQ-frontend with GNU General Public License v3.0 | 5 votes |
Sentry.init({
dsn: 'https://[email protected]/5420492',
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 1.0,
});