-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sentryはproductionでのみ有効化することを想定しています 環境変数SENTRY_DSNを設定してください
- Loading branch information
1 parent
1e9b9a4
commit 308cf25
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Sentry.init do |config| | ||
config.dsn = ENV["SENTRY_DSN"] | ||
config.breadcrumbs_logger = [:active_support_logger, :http_logger] | ||
|
||
# Set tracesSampleRate to 1.0 to capture 100% | ||
# of transactions for performance monitoring. | ||
# We recommend adjusting this value in production | ||
config.traces_sample_rate = 1.0 | ||
# or | ||
config.traces_sampler = lambda do |context| | ||
true | ||
end | ||
end |