Tower.Event (Tower v0.8.1)
View SourceA struct representing a captured event.
Tower converts every captured error and message into a struct of this type before passing along to reporters.
Summary
Types
@type error_kind() :: :error | :exit | :throw
@type level() :: :logger.level()
@type non_error_kind() :: :message
@type reason() :: Exception.t() | term()
@type t() :: %Tower.Event{ by: atom() | nil, datetime: DateTime.t(), id: UUIDv7.t(), kind: error_kind() | non_error_kind(), level: level(), log_event: :logger.log_event() | nil, metadata: map(), plug_conn: struct() | nil, reason: reason(), similarity_id: non_neg_integer(), stacktrace: Exception.stacktrace() | nil }
A struct representing a captured event.
Tower converts every captured error and message into a struct of this type before passing along to reporters.