Skip to content

Added asyncpg docs #7756

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

Merged
merged 6 commits into from
Sep 13, 2023
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+