-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add page for pure_eval integration (#1907)
- Loading branch information
1 parent
3d38104
commit 6067f53
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/collections/_documentation/platforms/python/pure_eval.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: pure_eval | ||
sidebar_order: 9 | ||
--- | ||
|
||
{% version_added 0.16.2 %} | ||
|
||
This integration uses [`pure_eval`](https://github.com/alexmojaki/pure_eval) to safely evaluate additional expressions in the source code and display their values alongside other local variables. | ||
|
||
**This integration is experimental.** It may be removed in minor versions. | ||
|
||
Python version 3.5 or greater is required. | ||
|
||
To install dependencies, either `pip install 'sentry-sdk[pure_eval]'` or `pip install pure_eval executing asttokens`. | ||
|
||
Add ``PureEvalIntegration()`` to your ``integrations`` list: | ||
|
||
```python | ||
import sentry_sdk | ||
from sentry_sdk.integrations.pure_eval import PureEvalIntegration | ||
|
||
sentry_sdk.init("___PUBLIC_DSN___", integrations=[PureEvalIntegration()]) | ||
``` |