View Source Sentry.Interfaces (Sentry v10.2.0)
Top-level module for Sentry interfaces.
Interfaces are pieces of the event payload that include various kinds of information. See the event payloads documentation and its subsections.
The types in this module and the nested structs are taken from Sentry's JSONSchema definitions.
Link to this section Summary
Link to this section Types
@type context() :: map()
The generic context interface.
@type user() :: %{ optional(:id) => term(), optional(:username) => term(), optional(:email) => String.t() | nil, optional(:ip_address) => String.t() | nil, optional(:segment) => term(), optional(:geo) => %{ optional(:city) => String.t() | nil, optional(:country_code) => String.t() | nil, optional(:region) => String.t() | nil }, optional(atom()) => term() }
The user interface.
This interface is not a struct since it allows any additional arbitrary key other than the ones defined in the schema.