mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(feat) more context on sentry
This commit is contained in:
parent
953cf46ec1
commit
41195ccf30
@ -1,5 +1,6 @@
|
||||
# Changelog Fab-manager
|
||||
|
||||
- Add more context data to sentry reports
|
||||
- Fix a bug: unable to run task fix_invoice_item when some invoice items are associated with errors
|
||||
- [TODO DEPLOY] `rails fablab:fix:invoice_items_in_error` THEN `rails fablab:fix_invoice_items` THEN `rails db:migrate`
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'version'
|
||||
|
||||
Sentry.init do |config|
|
||||
config.excluded_exceptions += ['Pundit::NotAuthorizedError']
|
||||
|
||||
@ -20,6 +22,11 @@ Sentry.init do |config|
|
||||
# Set traces_sample_rate to 1.0 to capture 100%
|
||||
# of transactions for performance monitoring.
|
||||
# We recommend adjusting this value in production.
|
||||
config.traces_sample_rate = 0.01
|
||||
config.traces_sample_rate = 0.1
|
||||
config.environment = Rails.env
|
||||
config.release = Version.current
|
||||
end
|
||||
|
||||
Sentry.configure_scope do |scope|
|
||||
scope.set_tags(instance: ENV.fetch('DEFAULT_HOST'))
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user