Function tracing and observability with console output and optional OpenTelemetry.
Project description
omniray
A live tracing tool for Python -- console profiling with optional OpenTelemetry tracing for omniwrap.
See the main README for full documentation.
Installation
pip install omniray
Quick Start
from omniwrap import wrap_all
from omniray import create_trace_wrapper, trace
# Auto-instrument with console profiling (OTel spans off by default)
wrap_all(create_trace_wrapper())
# Selectively enable OTel on high-value functions
@trace(otel=True)
def process_payment(order_id: str) -> bool: ...
@trace(otel=True)
async def execute_sql(query: str) -> list[dict]: ...
# Regular functions get profiling only — no OTel cost
@trace()
def validate_input(data: dict) -> bool: ...
Environment Variables
| Variable | Default | Description |
|---|---|---|
OMNIRAY_OTEL |
false |
Generate OpenTelemetry spans globally (use @trace(otel=True) for selective opt-in) |
OMNIRAY_LOG |
false |
Enable colored console tree output |
OMNIRAY_LOG_INPUT |
false |
Log function arguments |
OMNIRAY_LOG_OUTPUT |
false |
Log function return values |
OMNIRAY_LOG_COLOR |
true |
Enable ANSI colors in console output |
OMNIRAY_LOG_STYLE |
auto |
Box-drawing style: unicode, ascii, or auto (detect from terminal) |
License
Apache 2.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file omniray-1.0.1.tar.gz.
File metadata
- Download URL: omniray-1.0.1.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb139aeaaf671e57922f6f1d3d2afb41f7e9b0016322e9afeeec6f8f5e870e31
|
|
| MD5 |
18a74cf63bf5960431c0b3f141fda7d6
|
|
| BLAKE2b-256 |
4491a2164d7bc33057feebd3d0f680dabae903ffc5553174cf4dd9199c0d05ae
|
Provenance
The following attestation bundles were made for omniray-1.0.1.tar.gz:
Publisher:
publish.yml on omniviser/omniray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omniray-1.0.1.tar.gz -
Subject digest:
cb139aeaaf671e57922f6f1d3d2afb41f7e9b0016322e9afeeec6f8f5e870e31 - Sigstore transparency entry: 1185706854
- Sigstore integration time:
-
Permalink:
omniviser/omniray@de7ffbebadae2ad10e2f0f9611c67eaa24dd85df -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/omniviser
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@de7ffbebadae2ad10e2f0f9611c67eaa24dd85df -
Trigger Event:
release
-
Statement type:
File details
Details for the file omniray-1.0.1-py3-none-any.whl.
File metadata
- Download URL: omniray-1.0.1-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69869c9965d7415c38a93d1478e251d68ee928a64a72ff20a7d274f707b33a9c
|
|
| MD5 |
c3c8c7bac5eb7400b58a906b819ddaf2
|
|
| BLAKE2b-256 |
20e4c341784a8af24f398208e56712ed01f1f4c2b68acb26aa0910229cad1bf3
|
Provenance
The following attestation bundles were made for omniray-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on omniviser/omniray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omniray-1.0.1-py3-none-any.whl -
Subject digest:
69869c9965d7415c38a93d1478e251d68ee928a64a72ff20a7d274f707b33a9c - Sigstore transparency entry: 1185706856
- Sigstore integration time:
-
Permalink:
omniviser/omniray@de7ffbebadae2ad10e2f0f9611c67eaa24dd85df -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/omniviser
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@de7ffbebadae2ad10e2f0f9611c67eaa24dd85df -
Trigger Event:
release
-
Statement type: