Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the always_run option in excepthook document page #978

Merged
merged 4 commits into from
May 20, 2019
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 occuring in the REPL (`always_run=False`).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ops, now fixing .. :) Bad typo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries! This looks great. :) Thanks for all your work!


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

Expand Down