Added Sentry Redis Integration

This commit is contained in:
Ahmad 2025-01-19 16:49:02 -05:00
parent 81f6e377a9
commit 4caba6b186
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
3 changed files with 12 additions and 6 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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,