Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust sentry sample rates #1436

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/many-jeans-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'backend': patch
---

adjust sentry sample rates
4 changes: 2 additions & 2 deletions apps/api/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export const initApiSentry = () => {

// Add Tracing by setting tracesSampleRate
// We recommend adjusting this value in production
tracesSampleRate: 0.005,
tracesSampleRate: 0,

// Set sampling rate for profiling
// This is relative to tracesSampleRate
profilesSampleRate: 0.001,
profilesSampleRate: 0,

beforeSend(event, hint) {
const error = hint.originalException;
Expand Down
6 changes: 3 additions & 3 deletions apps/worker/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export const initWorkerSentry = () => {
],

// Add Tracing by setting tracesSampleRate
// We recommend adjusting this value in production
tracesSampleRate: 0.005,
// Send 1% of transactions to Sentry
tracesSampleRate: 0.01,

// Set sampling rate for profiling
// This is relative to tracesSampleRate
profilesSampleRate: 0.001,
profilesSampleRate: 0.01,

beforeSend: (event) => {
if (event.tags?.job && event.tags?.chain) {
Expand Down
Loading