Skip to content
Merged
Changes from all 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
39 changes: 39 additions & 0 deletions src/platforms/python/common/configuration/integrations/asyncpg.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: asyncpg
description: "Learn about importing the asyncpg integration and how it captures queries from asyncpg."
sidebar_order: 25
---

The asyncpg integration captures queries from
[asyncpg](https://github.com/MagicStack/asyncpg), which can be viewed in Sentry's **Performance** page.

## Install

To get started, install `sentry-sdk` from PyPI.

```bash
pip install --upgrade sentry-sdk[asyncpg]
```

## Configure

Add `AsyncPGIntegration()` to your `integrations` list:

<SignInNote />

```python
import sentry_sdk
from sentry_sdk.integrations.asyncpg import AsyncPGIntegration

sentry_sdk.init(
dsn="___PUBLIC_DSN___",
integrations=[
AsyncPGIntegration(),
],
)
```

## Supported Versions

- asyncpg: 0.23+
- Python: 3.7+