Module

Sentry.Raven.Breadcrumb

Package
purescript-sentry-raven
Repository
adamczykm/purescript-sentry-raven

#Level Source

data Level

Represents possible levels of a breadcrumb (specified by Sentry API)

Constructors

Instances

#Type Source

data Type

Represents possible types of a breadcrumb with special treatment from Sentry API

Constructors

Instances

#BreadcrumbT Source

type BreadcrumbT a d = { category :: a, data :: Maybe d, level :: Maybe Level, message :: Maybe String, type :: Maybe Type }

Restricted record for aggregating breadcrumb data supported by Sentry API

#Breadcrumb Source

newtype Breadcrumb a d

Breadcrumb type aggregating breadcrumb data supported by Sentry API

Constructors

Instances

#X Source

data X

Newtype represeting lack of data and providing necessary instances.

Constructors

Instances

#Breadcrumb' Source

type Breadcrumb' a = Breadcrumb a X

Breadcrumb type with no associated data

#breadcrumb Source

breadcrumb :: forall d a. a -> (BreadcrumbT a d -> BreadcrumbT a d) -> Breadcrumb a d

Allows for convenient creation of a restricted breadcrumb.

#breadcrumb' Source

breadcrumb' :: forall a. a -> (BreadcrumbT a X -> BreadcrumbT a X) -> Breadcrumb a X

Allows for convenient creation of a restricted breadcrumb without carrying additional data.

#recordBreadcrumb' Source

recordBreadcrumb' :: forall d a ctx h. WriteForeign a => WriteForeign d => Raven h ctx -> Breadcrumb a d -> Effect Unit

Adds a breadcrumb to the current context. Notice that replacing context will cause recorded breadcrumbs to be dropped. You may also want to use 'recordBreadcrumb' from 'Sentry.Raven.Core' for non-restricted version of this function.