class Raven::Breadcrumb

Included Modules

Defined in:

raven/breadcrumb.cr

Constructors

Instance Method Summary

Instance methods inherited from module Raven::Mixin::InitializeWith

initialize_with(attributes)
initialize_with(**attributes)
initialize_with

Constructor Detail

def self.new(**options) #

[View source]

Instance Method Detail

def category : String | Nil #

Categories are dotted strings that indicate what the crumb is or where it comes from. Typically it’s a module name or a descriptive string. For instance ui.click could be used to indicate that a click happened in the UI or flask could be used to indicate that the event originated in the Flask framework.


[View source]
def category=(category : String | Nil) #

Categories are dotted strings that indicate what the crumb is or where it comes from. Typically it’s a module name or a descriptive string. For instance ui.click could be used to indicate that a click happened in the UI or flask could be used to indicate that the event originated in the Flask framework.


[View source]
def data : AnyHash::JSON #

Data associated with this breadcrumb. Contains a sub-object whose contents depend on the breadcrumb #type. Additional parameters that are unsupported by the type are rendered as a key/value table.


def data=(data : AnyHash::JSON) #

Data associated with this breadcrumb. Contains a sub-object whose contents depend on the breadcrumb #type. Additional parameters that are unsupported by the type are rendered as a key/value table.


def data=(hash : Hash | NamedTuple | Nil) #

Data associated with this breadcrumb. Contains a sub-object whose contents depend on the breadcrumb #type. Additional parameters that are unsupported by the type are rendered as a key/value table.


[View source]
def level : Severity | Nil #

This defines the level of the event. If not provided it defaults to info which is the middle level.


[View source]
def level=(level : Severity | Nil) #

This defines the level of the event. If not provided it defaults to info which is the middle level.


[View source]
def level=(severity : Symbol) #

This defines the level of the event. If not provided it defaults to info which is the middle level.


[View source]
def message : String | Nil #

If a message is provided it’s rendered as text and the whitespace is preserved. Very long text might be abbreviated in the UI.


[View source]
def message=(message : String | Nil) #

If a message is provided it’s rendered as text and the whitespace is preserved. Very long text might be abbreviated in the UI.


[View source]
def timestamp : Time #

A timestamp representing when the breadcrumb occurred.


[View source]
def timestamp=(timestamp : Time) #

A timestamp representing when the breadcrumb occurred.


[View source]
def to_hash #

[View source]
def type : Type | Nil #

The type of breadcrumb. The default type is :default which indicates no specific handling. Other types are currently:

  • :http for HTTP requests and
  • :navigation for navigation events.

[View source]
def type=(type : Type | Nil) #

The type of breadcrumb. The default type is :default which indicates no specific handling. Other types are currently:

  • :http for HTTP requests and
  • :navigation for navigation events.

[View source]
def type=(type : Symbol) #

The type of breadcrumb. The default type is :default which indicates no specific handling. Other types are currently:

  • :http for HTTP requests and
  • :navigation for navigation events.

[View source]