Sha256: b5ac34d76259a2a3069bd158b9407684d1050697bb01f01fbd8e6f78515b3a7a

Contents?: true

Size: 757 Bytes

Versions: 3

Compression:

Stored size: 757 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

3 entries across 3 versions & 1 rubygems

Version Path
raygun4ruby-3.2.6 lib/raygun/breadcrumbs.rb
raygun4ruby-3.2.5.pre lib/raygun/breadcrumbs.rb
raygun4ruby-3.2.4 lib/raygun/breadcrumbs.rb