Skip to content

Commit 94ea850

Browse files
antonpirkerlizokmmimre25
authored
Added asyncpg docs (#7756)
--------- Co-authored-by: Liza Mock <[email protected]> Co-authored-by: Martin Imre <[email protected]>
1 parent 00745e4 commit 94ea850

File tree

1 file changed

+39
-0
lines changed
  • src/platforms/python/common/configuration/integrations

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: asyncpg
3+
description: "Learn about importing the asyncpg integration and how it captures queries from asyncpg."
4+
sidebar_order: 25
5+
---
6+
7+
The asyncpg integration captures queries from
8+
[asyncpg](https://github.com/MagicStack/asyncpg), which can be viewed in Sentry's **Performance** page.
9+
10+
## Install
11+
12+
To get started, install `sentry-sdk` from PyPI.
13+
14+
```bash
15+
pip install --upgrade sentry-sdk[asyncpg]
16+
```
17+
18+
## Configure
19+
20+
Add `AsyncPGIntegration()` to your `integrations` list:
21+
22+
<SignInNote />
23+
24+
```python
25+
import sentry_sdk
26+
from sentry_sdk.integrations.asyncpg import AsyncPGIntegration
27+
28+
sentry_sdk.init(
29+
dsn="___PUBLIC_DSN___",
30+
integrations=[
31+
AsyncPGIntegration(),
32+
],
33+
)
34+
```
35+
36+
## Supported Versions
37+
38+
- asyncpg: 0.23+
39+
- Python: 3.7+

0 commit comments

Comments
 (0)