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.2.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.2.0
File Size Uploaded Provenance Actions
br_logging_and_profiling-0.2.0.tar.gz 5.8 kB Without provenance Details for br_logging_and_profiling-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.0 kB

Release files / br_logging_and_profiling-0.2.0.tar.gz

Download URL br_logging_and_profiling-0.2.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
02969fab0dfbbf3c983af8f90b308bcda7683122984f358885ba7eee324a74ce
BLAKE2b-256 checksum
How to use checksums
c0dd8e228e9f7a1603a6d2a41d842afb8976ce50522e5a12d239c84228a25a40
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.2.0-py3-none-any.whl

Download URL br_logging_and_profiling-0.2.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7743ed8e764724ac86a3764dc5b6e8db37a22e2823cb6ce1a986bf65a5ad4e5
BLAKE2b-256 checksum
How to use checksums
1bd11a84e3432464d2d54205add0052dfbac3aaf4c2613da1c5e80f214da6f7d
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.2.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