-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from Canny-Code/add_sentry
[FEAT] Add Sentry
- Loading branch information
Showing
5 changed files
with
34 additions
and
1 deletion.
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
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,19 @@ | ||
# frozen_string_literal: true | ||
|
||
Sentry.init do |config| | ||
config.dsn = "https://9a5d6b46b2aceb55085f3813b9862aff@o4508342968975360.ingest.de.sentry.io/4508342982934608" | ||
config.breadcrumbs_logger = [ :active_support_logger, :http_logger ] | ||
|
||
# Set traces_sample_rate to 1.0 to capture 100% | ||
# of transactions for tracing. | ||
# We recommend adjusting this value in production. | ||
config.traces_sample_rate = 1.0 | ||
# or | ||
config.traces_sampler = lambda do |context| | ||
true | ||
end | ||
# Set profiles_sample_rate to profile 100% | ||
# of sampled transactions. | ||
# We recommend adjusting this value in production. | ||
config.profiles_sample_rate = 0.5 | ||
end |