Collector.Event (collector v0.1.1)

Copy Markdown

Builds protocol v1 events (see Collector's docs/protocol.md): plain string-keyed maps, ready to encode as JSON.

Summary

Functions

An event for an exception (or an Erlang error, normalized the way Elixir would raise it).

An event for a message that isn't an exception. Same options.

Functions

from_exception(exception, stacktrace, opts)

An event for an exception (or an Erlang error, normalized the way Elixir would raise it).

Options: :kind (default :error), :level, :fingerprint, :user, :request, :tags, :breadcrumbs.

from_message(message, opts)

An event for a message that isn't an exception. Same options.