if Rails.env.production?
  Datadog.configure do |c|
    c.env = 'production'
    c.service = 'hubble'
    c.use :rails, service_name: 'hubble'
    c.use :sidekiq, service_name: 'hubble-sidekiq', client_service_name: 'hubble-sidekiq'
    c.use :rest_client, service_name: 'hubble-external'
    c.use :rake, service_name: 'hubble-rake'
    c.sampling.default_rate = 1.0
    c.profiling.enabled = true
  end
end
