https://github.com/ponytailer/sentry-quart
The sentry middleware for quart
https://github.com/ponytailer/sentry-quart
middleware quart sentry
Last synced: 11 months ago
JSON representation
The sentry middleware for quart
- Host: GitHub
- URL: https://github.com/ponytailer/sentry-quart
- Owner: ponytailer
- License: apache-2.0
- Created: 2021-11-18T07:50:01.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-18T12:28:01.000Z (about 4 years ago)
- Last Synced: 2025-03-10T08:48:37.469Z (11 months ago)
- Topics: middleware, quart, sentry
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sentry-quart
The sentry middleware for quart
Sentry-asgi can't not collect the information like Flask
## How to install
```
pip install sentry-quart
```
## How to use
```
from quart import Quart
from sentry_quart import QuartMiddleware
app = Quart(__name__)
host = "https://xxxx.com/v1"
app.asgi_app = QuartMiddleware(app, host)._run_asgi3
# the sentry dsn in $env
sentry_sdk.init(traces_sample_rate=1)
```
## Photo
before:

after(like flask to show the view_func.name):
