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

pip install -r requirements-dev.txt
pre-commit install
pytest -m unit

Metadata

Release files for br-logging-and-profiling 0.1.0

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.1.0
File Size Uploaded Provenance Actions
br_logging_and_profiling-0.1.0.tar.gz 5.6 kB Without provenance Details for br_logging_and_profiling-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.6 kB

Release files / br_logging_and_profiling-0.1.0.tar.gz

Download URL br_logging_and_profiling-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2a8dcb92599619bb647fa933f023b28667fd46b7d9381c529cfa916dcdced209
BLAKE2b-256 checksum
How to use checksums
bfd30c91d97c67185bf5c1199b7730a1c1995fe5149fd628b92597699a4654bb
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.1.0-py3-none-any.whl

Download URL br_logging_and_profiling-0.1.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
418abf140d3647a29674e01eb5d5e80b9209be7e3b7d82495dbf530003676045
BLAKE2b-256 checksum
How to use checksums
6e8d98709493a07ce357db56356c9e1908b6e155668c9ad747fa7d26b98b9975
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.1.0

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