Skip to content

Commit 5887edf

Browse files
committed
docs
1 parent 3381d83 commit 5887edf

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ config :sentry,
7474
| `before_send_event` | False | | |
7575
| `after_send_event` | False | | |
7676
| `sample_rate` | False | 1.0 | |
77+
| `in_app_module_whitelist` | False | `[]` | |
7778
| `enable_source_code_context` | True | | |
7879
| `root_source_code_path` | Required if `enable_source_code_context` is enabled | | Should generally be set to `File.cwd!`|
7980
| `context_lines` | False | 3 | |
@@ -92,7 +93,8 @@ config :sentry,
9293
tags: %{
9394
env: "production"
9495
},
95-
hackney_opts: [pool: :my_pool]
96+
hackney_opts: [pool: :my_pool],
97+
in_app_module_whitelist: [MyApp]
9698
```
9799

98100
The `environment_name` and `included_environments` work together to determine

docs/config.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ Optional settings
9393

9494
The sampling factor to apply to events. A value of 0.0 will deny sending any events, and a value of 1.0 will send 100% of events.
9595

96+
.. describe:: in_app_module_whitelist
97+
98+
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 is ``MyApp`` and your setting is ``[MyApp]``, that module as well as any submodules like ``MyApp.Submodule`` would be considered part of your app. Defaults to ``[]``.
99+
96100
.. describe:: context_lines
97101

98102
The number of lines of source code before and after the line that caused the exception to be included. Defaults to ``3``.

lib/sentry/event.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ defmodule Sentry.Event do
22
@moduledoc """
33
Provides an Event Struct as well as transformation of Logger
44
entries into Sentry Events.
5+
6+
7+
### Configuration
8+
9+
* `: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 is `MyApp` and your setting is `[MyApp]`, that module as well as any submodules like `MyApp.Submodule` would be considered part of your app. Defaults to `[]`.
10+
511
"""
612

713
defstruct event_id: nil,

0 commit comments

Comments
 (0)