Errorgap.Breadcrumbs (errorgap v0.2.0)

Copy Markdown View Source

Per-process breadcrumb trail attached to notices as context.breadcrumbs.

Breadcrumbs are stored in the process dictionary, so they accumulate within the process handling a request or job and are captured when that process builds a notice.

Summary

Functions

Record a breadcrumb. metadata is an arbitrary map. Older breadcrumbs beyond max are dropped.

Clear the current process's breadcrumbs.

Return the current process's breadcrumbs.

Functions

add(message, category \\ nil, metadata \\ %{}, max \\ 25)

Record a breadcrumb. metadata is an arbitrary map. Older breadcrumbs beyond max are dropped.

clear()

Clear the current process's breadcrumbs.

get()

Return the current process's breadcrumbs.