buser-django-instrumentation-sentry-0.0.1
توضیحات
A helper library to configure centry instrumentation in Django projects.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | buser-django-instrumentation-sentry-0.0.1 |
| نام | buser-django-instrumentation-sentry |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Erle Carrara |
| ایمیل نویسنده | erle.carrara@buser.com.br |
| آدرس صفحه اصلی | http://packages.python.org/buser-django-instrumentation-sentry |
| آدرس اینترنتی | https://pypi.org/project/buser-django-instrumentation-sentry/ |
| مجوز | MIT |
# buser-django-instrumentation-sentry
Projeto com alguns utilitários para ajudar no envio de erros para o Sentry.
O que tem aqui que pode ajudar no seu projeto?
* Rate-limiting de envio de erros usando REDIS
* Sanitizadores padrões para ajudar não enviar PII para o Sentry
## Como usar?
```shellscript
pip install buser-django-instrumentation-sentry
# coloca no seu requirements.in!
```
E então no projeto inicializa o Sentry usando os utilitários disponíveis aqui.
```python
import sentry_sdk
import redis
from buser_django_instrumentation_sentry.redis_dedup_integration import RedisDedupIntegration
from buser_django_instrumentation_sentry.sanitize import create_event_sanitizer
redis_client = redis.StrictRedis()
sentry_sdk.init(
before_send=create_event_sanitizer(),
integrations=[
RedisDedupIntegration(redis_client)
]
)
```
نیازمندی
| مقدار | نام |
|---|---|
| <4 | django |
| <7 | raven |
| <2 | sentry-sdk |
| <5 | redis |
نحوه نصب
نصب پکیج whl buser-django-instrumentation-sentry-0.0.1:
pip install buser-django-instrumentation-sentry-0.0.1.whl
نصب پکیج tar.gz buser-django-instrumentation-sentry-0.0.1:
pip install buser-django-instrumentation-sentry-0.0.1.tar.gz