Sha256: 3b9aa3e5b39e7df8b8e8e68fbb61617ed9e2cd2b0a7c0234f25cb96721b8ec51

Contents?: true

Size: 1.28 KB

Versions: 13

Compression:

Stored size: 1.28 KB

Contents

Bugsnag.configure do |config|
  config.api_key = ENV["BUGSNAG_API_KEY"] || ENV["BUGSNAG_API_KEY"]
  config.endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["BUGSNAG_ENDPOINT"]
  config.session_endpoint = ENV["BUGSNAG_ENDPOINT"] || ENV["BUGSNAG_ENDPOINT"]
  config.app_type = ENV["BUGSNAG_APP_TYPE"] if ENV.include? "BUGSNAG_APP_TYPE"
  config.app_version = ENV["BUGSNAG_APP_VERSION"] if ENV.include? "BUGSNAG_APP_VERSION"
  config.auto_notify = ENV["BUGSNAG_AUTO_NOTIFY"] != "false"
  config.project_root = ENV["BUGSNAG_PROJECT_ROOT"] if ENV.include? "BUGSNAG_PROJECT_ROOT"
  config.ignore_classes << lambda { |ex| ex.class.to_s == ENV["BUGSNAG_IGNORE_CLASS"] } if ENV.include? "BUGSNAG_IGNORE_CLASS"
  config.auto_capture_sessions = ENV["BUGSNAG_AUTO_CAPTURE_SESSIONS"] == "true" unless ENV["USE_DEFAULT_AUTO_CAPTURE_SESSIONS"]
  config.release_stage = ENV["BUGSNAG_RELEASE_STAGE"] if ENV.include? "BUGSNAG_RELEASE_STAGE"
  config.send_code = ENV["BUGSNAG_SEND_CODE"] != "false"
  config.send_environment = ENV["BUGSNAG_SEND_ENVIRONMENT"] == "true"

  if ENV["SQL_ONLY_BREADCRUMBS"] == "true"
    config.before_breadcrumb_callbacks << Proc.new do |breadcrumb|
      breadcrumb.ignore! unless breadcrumb.meta_data[:event_name] == "sql.active_record" && breadcrumb.meta_data[:name] == "User Load"
    end
  end
end

Version data entries

13 entries across 5 versions & 1 rubygems

Version Path
bugsnag-6.12.2 features/fixtures/rails4/app/config/initializers/bugsnag.rb
bugsnag-6.12.2 features/fixtures/rails6/app/config/initializers/bugsnag.rb
bugsnag-6.12.2 features/fixtures/rails5/app/config/initializers/bugsnag.rb
bugsnag-6.12.1 features/fixtures/rails6/app/config/initializers/bugsnag.rb
bugsnag-6.12.1 features/fixtures/rails4/app/config/initializers/bugsnag.rb
bugsnag-6.12.1 features/fixtures/rails5/app/config/initializers/bugsnag.rb
bugsnag-6.12.0 features/fixtures/rails6/app/config/initializers/bugsnag.rb
bugsnag-6.12.0 features/fixtures/rails4/app/config/initializers/bugsnag.rb
bugsnag-6.12.0 features/fixtures/rails5/app/config/initializers/bugsnag.rb
bugsnag-6.11.1 features/fixtures/rails5/app/config/initializers/bugsnag.rb
bugsnag-6.11.1 features/fixtures/rails4/app/config/initializers/bugsnag.rb
bugsnag-6.11.0 features/fixtures/rails4/app/config/initializers/bugsnag.rb
bugsnag-6.11.0 features/fixtures/rails5/app/config/initializers/bugsnag.rb