Skip to main content

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…


Python Versions License Pipeline Status Docs Status Security

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

  1. Install required libraries:

pip install --upgrade pip
pip install virtualenv
  1. Create Python virtual environment:

virtualenv --python=python3.12 .venv
  1. 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:

  1. Fork the repository

  2. Create a feature branch

  3. Write tests for new functionality

  4. Ensure all tests pass: pytest -n auto

  5. Run linting: pylint core_sentry

  6. Run security checks: bandit -r core_sentry

  7. Submit a pull request

License

This project is licensed under the MIT License. See the LICENSE file for details.

Support

For questions or support, please open an issue on GitLab or contact the maintainers.

Authors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

core_sentry-1.0.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

core_sentry-1.0.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

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

Hashes for core_sentry-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6f9ae79b74d27e2a9a35847df76286a2d7657e0854916b96899d1563130f758a
MD5 54e683dfd10e7d5dd161c2be015a7cb5
BLAKE2b-256 32625ceb1c2cc83417a13128d284fe67212a813d9851e56142b3742317ccca3f

See more details on using hashes here.

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

Hashes for core_sentry-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97f75dc9314d11b1227bfe21b5b08489abacaf40612e245e49561c7a35086802
MD5 3e7a01c61355ce3e99061644148218c1
BLAKE2b-256 2282f5cf4289182b6d4b1db52b61b740c94edaad8f666597463d386a14ff1ce3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page