sentry v6.4.2 Sentry.Event
Provides an Event Struct as well as transformation of Logger entries into Sentry Events.
Configuration
:in_app_module_whitelist
- Expects a list of modules that is used to distinguish among stacktrace frames that belong to your app and ones that are part of libraries or core Elixir. This is used to better display the significant part of stacktraces. The logic is greedy, so if your app’s root module isMyApp
and your setting is[MyApp]
, that module as well as any submodules likeMyApp.Submodule
would be considered part of your app. Defaults to[]
.:report_deps
- Flag for whether to include the loaded dependencies when reporting an error. Defaults to true.
Link to this section Summary
Functions
Builds a map from argument value list. For Sentry, typically the key in the map would be the name of the variable, but we don’t have that available
Creates an Event struct out of context collected and options
Options
:exception
- expection:message
- message:stacktrace
- a list of Exception.stacktrace():extra
- map of extra context:user
- map of user context:tags
- map of tags context:request
- map of request context:breadcrumbs
- list of breadcrumbs:level
- error level:fingerprint
- list of the fingerprint for grouping this event
Transforms an Exception to a Sentry event.
Options
:stacktrace
- a list of Exception.stacktrace():extra
- map of extra context:user
- map of user context:tags
- map of tags context:request
- map of request context:breadcrumbs
- list of breadcrumbs:level
- error level:fingerprint
- list of the fingerprint for grouping this event
Link to this section Types
Link to this type
t()
t() :: %Sentry.Event{ breadcrumbs: term(), culprit: term(), environment: term(), event_id: term(), exception: term(), extra: term(), fingerprint: term(), level: term(), message: term(), modules: term(), platform: term(), release: term(), request: term(), server_name: term(), stacktrace: term(), tags: term(), timestamp: term(), user: term() }
Link to this section Functions
Link to this function
args_from_stacktrace(arg1)
args_from_stacktrace(Exception.stacktrace()) :: map()
Builds a map from argument value list. For Sentry, typically the key in the map would be the name of the variable, but we don’t have that available.
Creates an Event struct out of context collected and options
Options
:exception
- expection:message
- message:stacktrace
- a list of Exception.stacktrace():extra
- map of extra context:user
- map of user context:tags
- map of tags context:request
- map of request context:breadcrumbs
- list of breadcrumbs:level
- error level:fingerprint
- list of the fingerprint for grouping this event
Link to this function
culprit_from_stacktrace(list)
culprit_from_stacktrace(Exception.stacktrace()) :: String.t() | nil
Link to this function
do_put_source_context(frame, file, line_number)
Link to this function
stacktrace_to_frames(stacktrace)
stacktrace_to_frames(Exception.stacktrace()) :: [map()]
Link to this function
transform_exception(exception, opts)
transform_exception(Exception.t(), keyword()) :: Sentry.Event.t()
Transforms an Exception to a Sentry event.
Options
:stacktrace
- a list of Exception.stacktrace():extra
- map of extra context:user
- map of user context:tags
- map of tags context:request
- map of request context:breadcrumbs
- list of breadcrumbs:level
- error level:fingerprint
- list of the fingerprint for grouping this event