Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
679 B

Sentry.init do |config|
config.breadcrumbs_logger = %i[active_support_logger http_logger]
config.enabled_environments = %w[production staging review]
config.traces_sampler = lambda do |sampling_context|
transaction_context = sampling_context[:transaction_context]
op = transaction_context[:op]
transaction_name = transaction_context[:name]
case op
when /request/
case transaction_name
when /health/
0.0 # ignore healthcheck requests
else
0.01
end
when /sidekiq/
0.001
else
0.0 # We don't care about performance of other things
end
end
end
Sentry.set_tags("app_host": ENV["APP_HOST"])