Skip to content

Commit

Permalink
Add: Add tracesSampleRate for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Aug 18, 2023
1 parent 15f2641 commit 61318f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/config/initializers/sentry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
config.dsn = ENV["SENTRY_DSN_BACKEND"]
config.breadcrumbs_logger = [:active_support_logger]

config.traces_sample_rate = Rails.env.production? ? 0.2 : 1.0
config.traces_sample_rate = Rails.env.production? ? 0.1 : 1.0
end
end
2 changes: 2 additions & 0 deletions frontend/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ if (publicRuntimeConfig.sentryDsnFrontend) {
Sentry.init({
dsn: publicRuntimeConfig.sentryDsnFrontend,
integrations: [new Sentry.Replay()],

tracesSampleRate: process.env.NODE_ENV === "production" ? 0.1 : 1.0,
})
}

0 comments on commit 61318f2

Please sign in to comment.