Skip to content

Commit 6067f53

Browse files
authored
1 parent 3d38104 commit 6067f53

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

__tests__/__snapshots__/documentation.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ Array [
377377
"platforms/python/index.html",
378378
"platforms/python/logging/index.html",
379379
"platforms/python/migration/index.html",
380+
"platforms/python/pure_eval/index.html",
380381
"platforms/python/pyramid/index.html",
381382
"platforms/python/pyspark/index.html",
382383
"platforms/python/redis/index.html",

src/collections/_documentation/platforms/python/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ For more information, see:
267267

268268
- [Logging](/platforms/python/logging/)
269269
- [GNU Backtrace](/platforms/python/gnu_backtrace/)
270+
- [pure_eval](/platforms/python/pure_eval/)
270271
- [Redis](/platforms/python/redis/)
271272
- [SQLAlchemy](/platforms/python/sqlalchemy/)
272273

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: pure_eval
3+
sidebar_order: 9
4+
---
5+
6+
{% version_added 0.16.2 %}
7+
8+
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.
9+
10+
**This integration is experimental.** It may be removed in minor versions.
11+
12+
Python version 3.5 or greater is required.
13+
14+
To install dependencies, either `pip install 'sentry-sdk[pure_eval]'` or `pip install pure_eval executing asttokens`.
15+
16+
Add ``PureEvalIntegration()`` to your ``integrations`` list:
17+
18+
```python
19+
import sentry_sdk
20+
from sentry_sdk.integrations.pure_eval import PureEvalIntegration
21+
22+
sentry_sdk.init("___PUBLIC_DSN___", integrations=[PureEvalIntegration()])
23+
```

0 commit comments

Comments
 (0)