mirror of
https://github.com/QuivrHQ/quivr.git
synced 2025-01-05 23:03:53 +03:00
Reduce sampling rate for Sentry traces (#2245)
This pull request reduces the sampling rate for Sentry traces to 0.1. This change ensures that only a small percentage of traces are captured, which helps to reduce the impact on performance and storage.
This commit is contained in:
parent
5f862e7c31
commit
44312dc617
@ -44,6 +44,7 @@ if sentry_dsn:
|
|||||||
dsn=sentry_dsn,
|
dsn=sentry_dsn,
|
||||||
sample_rate=0.1,
|
sample_rate=0.1,
|
||||||
enable_tracing=True,
|
enable_tracing=True,
|
||||||
|
traces_sample_rate=0.1,
|
||||||
integrations=[
|
integrations=[
|
||||||
StarletteIntegration(transaction_style="endpoint"),
|
StarletteIntegration(transaction_style="endpoint"),
|
||||||
FastApiIntegration(transaction_style="endpoint"),
|
FastApiIntegration(transaction_style="endpoint"),
|
||||||
|
@ -14,6 +14,7 @@ if (SENTRY_DSN) {
|
|||||||
|
|
||||||
// Adjust this value in production, or use tracesSampler for greater control
|
// Adjust this value in production, or use tracesSampler for greater control
|
||||||
sampleRate: 0.1,
|
sampleRate: 0.1,
|
||||||
|
tracesSampleRate: 0.1,
|
||||||
|
|
||||||
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
||||||
debug: false,
|
debug: false,
|
||||||
@ -35,4 +36,4 @@ if (SENTRY_DSN) {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log("Sentry is not initialized as SENTRY_DSN is not set");
|
console.log("Sentry is not initialized as SENTRY_DSN is not set");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user