@sentry/tracing#Integrations TypeScript 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: utils.ts From dashboard with Apache License 2.0 | 7 votes |
export function initSentry() {
if (process.env.NODE_ENV === "production") {
Sentry.init({
dsn:
"https://[email protected]/5639443",
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 1.0,
})
}
}
Example #2
Source File: main.ts From webapp with MIT License | 6 votes |
!isDev &&
Sentry.init({
dsn:
"https://[email protected]/5476475",
debug: isDev,
environment: isDev ? "development" : "prod/staging",
release: `swap-${appVersion}`,
integrations: [
new VueIntegration({
Vue,
tracing: true,
tracingOptions: {
trackComponents: false
}
}),
new Integrations.BrowserTracing()
],
sampleRate: 0.1,
tracesSampleRate: 0.1
});
Example #3
Source File: _app.tsx From dope-monorepo with GNU General Public License v3.0 | 6 votes |
Sentry.init({
dsn: 'https://[email protected]/5978399',
integrations: [new Integrations.BrowserTracing()],
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
Example #4
Source File: error-report.service.ts From ionic-pwa-example-moment with MIT License | 6 votes |
readonly initialize$ = this.enabled$.pipe(
concatMap(enabled =>
iif(
() => enabled && !this.hasInitialized,
defer(async () => {
Sentry.init({
dsn:
'https://[email protected]/5686819',
integrations: [
new Integrations.BrowserTracing({
routingInstrumentation: Sentry.routingInstrumentation,
}),
],
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 0.5,
enabled: environment.production,
beforeSend: async event => {
const enabled = await this.enabled$.pipe(first()).toPromise();
if (enabled) return event;
return null;
},
});
this.hasInitialized = true;
})
)
)
);
Example #5
Source File: index.tsx From nft-market with MIT License | 6 votes |
Sentry.init({
dsn: 'https://[email protected]/5842491',
integrations: [new Integrations.BrowserTracing()],
enabled: process.env.NODE_ENV !== 'development',
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
})
Example #6
Source File: main.ts From jira-clone-angular with MIT License | 6 votes |
initSentry = () => {
Sentry.init({
dsn: 'https://[email protected]/5569161',
autoSessionTracking: true,
integrations: [
new Integrations.BrowserTracing({
tracingOrigins: ['localhost', 'https://jira.trungk18.com/'],
routingInstrumentation: Sentry.routingInstrumentation
})
],
tracesSampleRate: 1.0
});
}
Example #7
Source File: sentry.ts From fresh-coupons with GNU General Public License v3.0 | 5 votes |
Sentry.init({
environment: config.environment,
dsn: config.sentryDsn,
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: .5,
});
Example #8
Source File: connect.ts From clearflask with Apache License 2.0 | 5 votes |
Sentry.init({
dsn: "https://[email protected]/5884409",
integrations: [new Integrations.Express()],
tracesSampleRate: 0.1,
environment: process.env.ENV,
});
Example #9
Source File: index-csr.tsx From clearflask with Apache License 2.0 | 5 votes |
Sentry.init({
dsn: "https://[email protected]/5884409",
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: !isProd() ? 1.0 : 0.1,
environment: detectEnv(),
});
Example #10
Source File: index.tsx From nuzlocke with BSD 3-Clause "New" or "Revised" License | 5 votes |
Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
release: process.env.REACT_APP_VERSION,
tracesSampleRate: 0.2,
});
Example #11
Source File: application.tsx From takeout-app with MIT License | 5 votes |
Sentry.init({
dsn: SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 0.3,
});