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? #

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?) #

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?) #

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? #

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?) #

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? #

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?) #

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? #

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?) #

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]