mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Added JavaScript Profiling with Sentry
This commit is contained in:
parent
d03340dd5a
commit
a3c568d5a1
2 changed files with 26 additions and 2 deletions
|
@ -19,8 +19,19 @@ Sentry.init({
|
|||
}),
|
||||
],
|
||||
|
||||
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
|
||||
tracesSampleRate: 1,
|
||||
// Set tracesSampleRate to 1.0 to capture 100%
|
||||
// of transactions for tracing.
|
||||
// We recommend adjusting this value in production
|
||||
tracesSampleRate: 1.0,
|
||||
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
|
||||
tracePropagationTargets: ['localhost', /^https:\/\/tasko\.ahmadk953\.org/],
|
||||
|
||||
// Set profilesSampleRate to 1.0 to profile every transaction.
|
||||
// Since profilesSampleRate is relative to tracesSampleRate,
|
||||
// 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,
|
||||
|
||||
// Define how likely Replay events are sampled.
|
||||
replaysSessionSampleRate: 0.5,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue