This project provides common components related to the integration with Sentry...
Project description
core-sentry
This project provides a set of common components related to the integration with Sentry designed to facilitate tracking errors and logs monitoring…
Installation
Install from PyPI using pip:
pip install core-sentry
uv pip install core-sentry # Or using UV...
Features
Sentry SDK Initialization Decorator
Automatic SDK Initialization: Easily initialize Sentry SDK with a decorator-based approach
Tag Management: Add custom tags for enhanced error tracking and filtering in Sentry dashboard
Smart Initialization: Automatically prevents duplicate initialization when Sentry is already configured
Graceful Error Handling: Logs warnings on initialization failures without breaking your application
Flexible Configuration: Supports all standard Sentry SDK configuration options:
dsn: Sentry Data Source Name for routing events
env: Environment tagging (production, staging, development, etc.)
traces_sample_rate: Configurable transaction tracing (defaults to 0.1)
send_default_pii: Control personally identifiable information transmission
And all other Sentry SDK options
Multiple Decorator Syntax: Use with or without parentheses for flexibility
Type-Safe: Fully typed with Python type hints for better IDE support
Quick Start
Installation
Install the package:
pip install core-sentry
uv pip install core-sentry # Or using UV...
pip install -e ".[dev]" # For development...
Setting Up Environment
Install required libraries:
pip install --upgrade pip
pip install virtualenv
Create Python virtual environment:
virtualenv --python=python3.12 .venv
Activate the virtual environment:
source .venv/bin/activate
Install packages
pip install .
pip install -e ".[dev]"
Check tests and coverage
python manager.py run-tests
python manager.py run-coverage
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Write tests for new functionality
Ensure all tests pass: pytest -n auto
Run linting: pylint core_sentry
Run security checks: bandit -r core_sentry
Submit a pull request
License
This project is licensed under the MIT License. See the LICENSE file for details.
Links
Support
For questions or support, please open an issue on GitLab or contact the maintainers.
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 core_sentry-1.0.2.tar.gz.
File metadata
- Download URL: core_sentry-1.0.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f9ae79b74d27e2a9a35847df76286a2d7657e0854916b96899d1563130f758a
|
|
| MD5 |
54e683dfd10e7d5dd161c2be015a7cb5
|
|
| BLAKE2b-256 |
32625ceb1c2cc83417a13128d284fe67212a813d9851e56142b3742317ccca3f
|
File details
Details for the file core_sentry-1.0.2-py3-none-any.whl.
File metadata
- Download URL: core_sentry-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97f75dc9314d11b1227bfe21b5b08489abacaf40612e245e49561c7a35086802
|
|
| MD5 |
3e7a01c61355ce3e99061644148218c1
|
|
| BLAKE2b-256 |
2282f5cf4289182b6d4b1db52b61b740c94edaad8f666597463d386a14ff1ce3
|