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_itdecorator (wall-clock timing, colored console output) - Correlation IDs:
ray_idviacontextvars.ContextVar
Planned
tracing/module:init_tracing(),traceddecorator (OTel span replacement forprofile_it),@counted/@timed_metricfor 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| br_logging_and_profiling-0.5.1.tar.gz | 6.1 kB | Without provenance | Details for br_logging_and_profiling-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| br_logging_and_profiling-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for br_logging_and_profiling-0.5.1-py3-none-any.whl |
Total release size: 12.7 kB
Release files / br_logging_and_profiling-0.5.1.tar.gz
| Download URL | br_logging_and_profiling-0.5.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a668d686dd5e3ea310038867ba48b22622d66430d21296062a433649245734e
|
|
BLAKE2b-256 checksum How to use checksums |
f7b09debcdb38c332a57d38780f5fc54df35dd4996f04b78436968d578f7c6f2
|
| 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.1-py3-none-any.whl
| Download URL | br_logging_and_profiling-0.5.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54b8e645bfc5e20d3abbcac3cc4fc0641f5a39cae9b2f0bc08e85efd962c9043
|
|
BLAKE2b-256 checksum How to use checksums |
e2f21ed8665964ad0d6d17d07d95048b4f9cee56501ca60cfec051a6f8c62904
|
| 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.1
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.