Sha256: f86258eaa3f16f3bb0e53ef89eafb3054ca9a5c1e13ad77167a27eac8e253a69

Contents?: true

Size: 527 Bytes

Versions: 9

Compression:

Stored size: 527 Bytes

Contents

class BreadcrumbsController < ApplicationController
  def handled
    Bugsnag.notify("Request breadcrumb")
    render json: {}
  end

  def sql_breadcrumb
    User.find_by(email: "foo")
    Bugsnag.notify("SQL breadcrumb")
    render json: {}
  end

  def active_job
    Thread.new { NotifyJob.perform_later }.join
    render json: {}
  end

  def cache_read
    Thread.new {
      Rails.cache.write('test', true)
      Rails.cache.read('test')
      Bugsnag.notify("Cache breadcrumb")
    }.join
    render json: {}
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bugsnag-6.15.0 features/fixtures/rails4/app/app/controllers/breadcrumbs_controller.rb
bugsnag-6.14.0 features/fixtures/rails4/app/app/controllers/breadcrumbs_controller.rb
bugsnag-6.13.1 features/fixtures/rails4/app/app/controllers/breadcrumbs_controller.rb
bugsnag-6.13.0 features/fixtures/rails4/app/app/controllers/breadcrumbs_controller.rb
bugsnag-6.12.2 features/fixtures/rails4/app/app/controllers/breadcrumbs_controller.rb
bugsnag-6.12.1 features/fixtures/rails4/app/app/controllers/breadcrumbs_controller.rb
bugsnag-6.12.0 features/fixtures/rails4/app/app/controllers/breadcrumbs_controller.rb
bugsnag-6.11.1 features/fixtures/rails4/app/app/controllers/breadcrumbs_controller.rb
bugsnag-6.11.0 features/fixtures/rails4/app/app/controllers/breadcrumbs_controller.rb