class Raven::Event

Included Modules

Defined in:

raven/event.cr

Constant Summary

MAX_MESSAGE_SIZE_IN_BYTES = 1024 * 8

See Sentry server default limits at https://github.com/getsentry/sentry/blob/master/src/sentry/conf/server.py

PLATFORM = "crystal"

A string representing the platform the SDK is submitting from.

This will be used by the Sentry interface to customize various components in the interface.

SDK = {name: "raven.cr", version: Raven::VERSION}

Information about the SDK sending the event.

Constructors

Class Method Summary

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]

Class Method Detail

def self.from(ex : Exception, **options) #

[View source]
def self.from(message : String, **options) #

[View source]

Instance Method Detail

def backtrace=(backtrace) #

[View source]
def breadcrumbs : BreadcrumbBuffer #

[View source]
def breadcrumbs=(breadcrumbs : BreadcrumbBuffer) #

[View source]
def configuration : Configuration #

[View source]
def configuration=(configuration : Configuration) #

[View source]
def context : Context #

[View source]
def context=(context : Context) #

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

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

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

[View source]
def culprit : String | Nil #

The name of the transaction (or culprit) which caused this exception.


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

The name of the transaction (or culprit) which caused this exception.


[View source]
def environment : String | Nil #

The environment name, such as production or staging.


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

The environment name, such as production or staging.


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

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

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

[View source]
def fingerprint : Array(String) #

An array of strings used to dictate the deduplication of this event.

NOTE A value of {{ default }} will be replaced with the built-in behavior, thus allowing you to extend it, or completely replace it.


[View source]
def fingerprint=(fingerprint : Array(String)) #

An array of strings used to dictate the deduplication of this event.

NOTE A value of {{ default }} will be replaced with the built-in behavior, thus allowing you to extend it, or completely replace it.


[View source]
def id : String #

Hexadecimal string representing a uuid4 value.

NOTE The length is exactly 32 characters (no dashes!)


[View source]
def id=(id : String) #

Hexadecimal string representing a uuid4 value.

NOTE The length is exactly 32 characters (no dashes!)


[View source]
def interface(name : Symbol, options : NamedTuple) #

[View source]
def interface(name : Symbol) #

[View source]
def interface(name : Symbol, **options : Object) #

[View source]
def level : Severity | Nil #

The record severity. Defaults to :error.


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

The record severity. Defaults to :error.


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

The record severity. Defaults to :error.


[View source]
def list_shard_specs #

[View source]
def logger : String | Nil #

The name of the logger which created the record.


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

The name of the logger which created the record.


[View source]
def message #

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

[View source]
def message=(message_with_params : Enumerable | Indexable) #

[View source]
def modules : Hash(String, String) | Nil #

A list of relevant modules and their versions.


[View source]
def modules=(modules : Hash(String, String) | Nil) #

A list of relevant modules and their versions.


[View source]
def release : String | Nil #

The release version of the application.

NOTE This value will generally be something along the lines of the git SHA for the given project.


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

The release version of the application.

NOTE This value will generally be something along the lines of the git SHA for the given project.


[View source]
def server_name : String | Nil #

Identifies the host SDK from which the event was recorded.


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

Identifies the host SDK from which the event was recorded.


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

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

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

[View source]
def timestamp : Time #

Indicates when the logging record was created (in the Sentry SDK).


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

Indicates when the logging record was created (in the Sentry SDK).


[View source]
def to_hash : HashType #

[View source]
def to_json(*args, **options) #

[View source]
def to_json(*args, **options, &) #

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

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

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

[View source]