Sha256: 2108f6e789fa8e7da2a8a58904510260d53252ea009447eb3378f1fd0d97fc7a

Contents?: true

Size: 723 Bytes

Versions: 19

Compression:

Stored size: 723 Bytes

Contents

module Raygun
  module Breadcrumbs
    BREADCRUMB_LEVELS = [
      :debug,
      :info,
      :warning,
      :error,
      :fatal
    ]

    def record_breadcrumb(
        message: nil,
        category: '',
        level: :info,
        timestamp: Time.now.utc.to_i,
        metadata: {},
        class_name: nil,
        method_name: nil,
        line_number: nil
    )
      class_name = class_name || self.class.name
      Raygun::Breadcrumbs::Store.record(
        message: message,
        category: category,
        level: level,
        timestamp: timestamp,
        metadata: metadata,
        class_name: class_name,
        method_name: method_name,
        line_number: line_number,
      )
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
raygun4ruby-4.0.2 lib/raygun/breadcrumbs.rb
raygun4ruby-4.0.1 lib/raygun/breadcrumbs.rb
raygun4ruby-4.0.0.pre lib/raygun/breadcrumbs.rb
raygun4ruby-3.2.3 lib/raygun/breadcrumbs.rb
raygun4ruby-3.2.3.pre lib/raygun/breadcrumbs.rb
raygun4ruby-3.2.1 lib/raygun/breadcrumbs.rb
raygun4ruby-3.2.0 lib/raygun/breadcrumbs.rb
raygun4ruby-3.1.1 lib/raygun/breadcrumbs.rb
raygun4ruby-3.1.0 lib/raygun/breadcrumbs.rb
raygun4ruby-3.0.0 lib/raygun/breadcrumbs.rb
raygun4ruby-2.7.1 lib/raygun/breadcrumbs.rb
raygun4ruby-2.7.0 lib/raygun/breadcrumbs.rb
raygun4ruby-2.6.0 lib/raygun/breadcrumbs.rb
raygun4ruby-2.5.0 lib/raygun/breadcrumbs.rb
raygun4ruby-2.4.1 lib/raygun/breadcrumbs.rb
raygun4ruby-2.4.0 lib/raygun/breadcrumbs.rb
raygun4ruby-2.3.0 lib/raygun/breadcrumbs.rb
raygun4ruby-2.2.0 lib/raygun/breadcrumbs.rb
raygun4ruby-2.1.0 lib/raygun/breadcrumbs.rb