No project description provided
Project description
sentry-deduplicate-integration
Sentry integration to rate-limit duplicated errors, using redis to sync error count and identify duplications.
Install
Install it from PyPI:
pip install sentry-deduplicate-integration
Configure
Add the integration to your sentry_sdk initialization.
import redis
from sentry_deduplicate_integration import SentryDeduplicateIntegration
sentry_sdk.init(
integrations=[
SentryDeduplicateIntegration(redis_factory=redis.Redis),
],
)
The redis_factory arg is any function returning a redis client.
For simple projects, it is possible to use it without a Redis instance, using fakeredis, which is an in-memory Redis compatible implementation. It will deduplicate only errors in the same thread.
import fakeredis
from sentry_deduplicate_integration import SentryDeduplicateIntegration
sentry_sdk.init(
integrations=[
SentryDeduplicateIntegration(redis_factory=fakeredis.FakeRedis),
],
)
What about sentry_sdk.DedupeIntegration?
The DedupeIntegration
is installed by default and we expected it to work, but it just avoid
duplications when the same error is triggered twice, works only in the
same process and only the last error is checked for deduplication.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sentry_deduplicate_integration-0.2.0.tar.gz.
File metadata
- Download URL: sentry_deduplicate_integration-0.2.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.11.0 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6384809f47d60e4f15cbe4f7cd3ca02c33aa8568fb649266084da9fcdae6707e
|
|
| MD5 |
1ce50ead3fd599d395948ecbe634867a
|
|
| BLAKE2b-256 |
f2ed45553101c8cf95b448e5c3a8f76b3e530bcfffd7a51356211684154b755a
|
File details
Details for the file sentry_deduplicate_integration-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sentry_deduplicate_integration-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.11.0 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdba39843431e9bf42bd45beefa4c2233d0a9fd4d672698cbf57cf9e3f8eebe8
|
|
| MD5 |
9e56b9f1e4ada0c3d61863b99b512795
|
|
| BLAKE2b-256 |
8f9c54c20e8a538f0729843465920217a5f059f3ffc049705eee1af55595deec
|