Skip to main content

br_logging_and_profiling

Reusable logging/profiling/tracing package extracted from Forecasting-sidecar3.

Current state

  • Logging: Loguru + colorama via br_py_log_n_profile.do_log.log_it
  • Profiling: profile_it decorator (wall-clock timing, colored console output)
  • Correlation IDs: ray_id via contextvars.ContextVar

Planned

  • tracing/ module: init_tracing(), traced decorator (OTel span replacement for profile_it), @counted/@timed_metric for hot-loop metrics
  • Backend: Prometheus + Jaeger + Grafana + OTel Collector
  • Migration phases: Phase 0 (deps/config) → Phase 1 (core tracing) → Phase 2 (migrate by layer) → Phase 3 (metrics) → Phase 4 (backend stack)

Install

pip install br-logging-and-profiling

Development

Clone with submodules, or initialize the shared pre-commit tooling after cloning:

git submodule update --init --recursive
pip install -r requirements-dev.txt
bash br_pre_commit/install.sh "$PWD"
./pre-commit
pytest -m unit

The pre-commit gate runs strict mypy against examples/, including the profile_it type-preservation example.

Metadata

Release files for br-logging-and-profiling 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for br-logging-and-profiling 0.5.2
File Size Uploaded Provenance Actions
br_logging_and_profiling-0.5.2.tar.gz 6.1 kB Without provenance Details for br_logging_and_profiling-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for br-logging-and-profiling 0.5.2
File Interpreter ABI Platform Actions
br_logging_and_profiling-0.5.2-py3-none-any.whl Python 3 none any Details for br_logging_and_profiling-0.5.2-py3-none-any.whl

Total release size: 12.7 kB

Release files / br_logging_and_profiling-0.5.2.tar.gz

Download URL br_logging_and_profiling-0.5.2.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1bda80f489daa998aade8cbb15d19aaae266909a5ea35240e80656c52f5c4857
BLAKE2b-256 checksum
How to use checksums
4c37e521c63869a14784135a1b9e25cab4226e0f80e355749d0473902db0c7a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Release files / br_logging_and_profiling-0.5.2-py3-none-any.whl

Download URL br_logging_and_profiling-0.5.2-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2780c22c400106f6ec2861604ec3ca8db13e04aef4fb8def8b1eda72b1cb9e13
BLAKE2b-256 checksum
How to use checksums
3986ee41411fb34fff1fe59e3f890746c3a113aae4c2a15af4e49fa2c595f70d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Security for br-logging-and-profiling 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page