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.5.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.5.0
File Size Uploaded Provenance Actions
br_logging_and_profiling-0.5.0.tar.gz 5.9 kB Without provenance Details for br_logging_and_profiling-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.2 kB

Release files / br_logging_and_profiling-0.5.0.tar.gz

Download URL br_logging_and_profiling-0.5.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0801237a460fa068fe793c1445e7604b1938904833b6b68ef1c4240c0d72475e
BLAKE2b-256 checksum
How to use checksums
faa4cddc12c14e82c1c0b7592ec64696d95cb582a4d4d329d7440231c9a205a7
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.0-py3-none-any.whl

Download URL br_logging_and_profiling-0.5.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04e27887d1a4f10a2854c2d028772bbeefa98c7622860c5c3da06fdec38d5741
BLAKE2b-256 checksum
How to use checksums
28a106451e30ecf05bf885887a55069f86fe3d482fe017ea338833a3dc82b0b9
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.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