mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-30 16:43:37 +00:00
Added Sentry Redis Integration
This commit is contained in:
parent
81f6e377a9
commit
4caba6b186
3 changed files with 12 additions and 6 deletions
|
@ -24,7 +24,7 @@ Sentry.init({
|
|||
// Set tracesSampleRate to 1.0 to capture 100%
|
||||
// of transactions for tracing.
|
||||
// We recommend adjusting this value in production
|
||||
tracesSampleRate: 1.0,
|
||||
tracesSampleRate: 0.5,
|
||||
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
|
||||
tracePropagationTargets: ['localhost', /^https:\/\/tasko\.ahmadk953\.org/],
|
||||
|
||||
|
@ -33,7 +33,7 @@ Sentry.init({
|
|||
// the final profiling rate can be computed as tracesSampleRate * profilesSampleRate
|
||||
// For example, a tracesSampleRate of 0.5 and profilesSampleRate of 0.5 would
|
||||
// result in 25% of transactions being profiled (0.5*0.5=0.25)
|
||||
profilesSampleRate: 1.0,
|
||||
profilesSampleRate: 0.5,
|
||||
|
||||
// Define how likely Replay events are sampled.
|
||||
replaysSessionSampleRate: 0.25,
|
||||
|
|
|
@ -11,7 +11,7 @@ Sentry.init({
|
|||
// Set tracesSampleRate to 1.0 to capture 100%
|
||||
// of transactions for tracing.
|
||||
// We recommend adjusting this value in production
|
||||
tracesSampleRate: 1.0,
|
||||
tracesSampleRate: 0.5,
|
||||
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
|
||||
tracePropagationTargets: ['localhost', /^https:\/\/tasko\.ahmadk953\.org/],
|
||||
|
||||
|
@ -20,7 +20,7 @@ Sentry.init({
|
|||
// the final profiling rate can be computed as tracesSampleRate * profilesSampleRate
|
||||
// For example, a tracesSampleRate of 0.5 and profilesSampleRate of 0.5 would
|
||||
// result in 25% of transactions being profiled (0.5*0.5=0.25)
|
||||
profilesSampleRate: 1.0,
|
||||
profilesSampleRate: 0.5,
|
||||
|
||||
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
||||
debug: false,
|
||||
|
|
|
@ -7,10 +7,16 @@ import * as Sentry from '@sentry/nextjs';
|
|||
Sentry.init({
|
||||
dsn: 'https://bb697105eaabbc6f70af12e84e936ded@o4508368569368576.ingest.us.sentry.io/4508368582017024',
|
||||
|
||||
integrations: [
|
||||
Sentry.redisIntegration({
|
||||
cachePrefixes: ['tasko:'],
|
||||
}),
|
||||
],
|
||||
|
||||
// Set tracesSampleRate to 1.0 to capture 100%
|
||||
// of transactions for tracing.
|
||||
// We recommend adjusting this value in production
|
||||
tracesSampleRate: 1.0,
|
||||
tracesSampleRate: 0.5,
|
||||
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
|
||||
tracePropagationTargets: ['localhost', /^https:\/\/tasko\.ahmadk953\.org/],
|
||||
|
||||
|
@ -19,7 +25,7 @@ Sentry.init({
|
|||
// the final profiling rate can be computed as tracesSampleRate * profilesSampleRate
|
||||
// For example, a tracesSampleRate of 0.5 and profilesSampleRate of 0.5 would
|
||||
// result in 25% of transactions being profiled (0.5*0.5=0.25)
|
||||
profilesSampleRate: 1.0,
|
||||
profilesSampleRate: 0.5,
|
||||
|
||||
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
||||
debug: false,
|
||||
|
|
Loading…
Reference in a new issue