Browse Source

Removes Sentry custom instrumentation

pull/595/head
Stéphane Meny 3 years ago
parent
commit
e7ddb9dfa6
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 5
      app/models/case_log.rb
  2. 2
      config/initializers/sentry.rb

5
app/models/case_log.rb

@ -66,13 +66,10 @@ class CaseLog < ApplicationRecord
end
def collection_start_year
transaction = Sentry.start_transaction(op: "collection_start_year")
return unless startdate
window_end_date = Time.zone.local(startdate.year, 4, 1)
start_year = startdate < window_end_date ? startdate.year - 1 : startdate.year
transaction.finish if transaction
start_year
startdate < window_end_date ? startdate.year - 1 : startdate.year
end
def form_name

2
config/initializers/sentry.rb

@ -1,5 +1,5 @@
Sentry.init do |config|
config.breadcrumbs_logger = %i[active_support_logger http_logger]
config.enabled_environments = %w[production staging]
config.traces_sample_rate = 1
config.traces_sample_rate = 0.2
end

Loading…
Cancel
Save