Skip to content

Commit

Permalink
Added the always_run option in excepthook document page (#978)
Browse files Browse the repository at this point in the history
* Added the always_run option in excepthook document page

* Reviewing always_run option document.

* Fixed indentation level and duplicates information

* Typo fixed
  • Loading branch information
tolgahanuzun authored and untitaker committed May 20, 2019
1 parent 3487a7c commit 751e50f
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,22 @@ This integration registers with the interpreter's except hook system. Through t
any exception that is unhandled will be reported to Sentry automatically. Exceptions
raised interactive interpreter sessions will not be reported.

### Options

You can pass the following keyword arguments to `ExcepthookIntegration()`:

* `always_run`:

```bash
$ python
>>> import sentry_sdk
>>> from sentry_sdk.integrations.excepthook import ExcepthookIntegration
>>> sentry_sdk.init(..., integrations=[ExcepthookIntegration(always_run=True)])
>>> raise Exception("I will become an error")
```

By default, the SDK does not capture errors occurring in the REPL (`always_run=False`).

## Deduplication
*Import name: `sentry_sdk.integrations.dedupe.DedupeIntegration`*

Expand Down

0 comments on commit 751e50f

Please sign in to comment.