OpenTelemetry auto-instrumentation for the Pico ecosystem: tracing, metrics and log correlation wired by entry points.
Project description
📦 pico-otel
OpenTelemetry auto-instrumentation for the Pico ecosystem. Install it and your pico-boot app gets distributed tracing, log correlation and Prometheus metrics — wired by entry points, zero integration code.
Install
pip install pico-otel[all] # or pick: [otlp] [prometheus] [fastapi] [sqlalchemy] [celery] [logging]
What you get
- Tracing: FastAPI requests, SQLAlchemy queries and Celery tasks become spans — whichever libraries are present get instrumented, the rest are skipped silently.
- Metrics: the OTel meter provider exports to
prometheus_client's default registry — the same one pico-actuator serves at/actuator/metrics. Installing both = probes + metrics + tracing with zero config. - Log correlation: trace/span ids injected into log records.
# application.yaml (optional — sensible defaults without it)
otel:
service_name: my-service
endpoint: http://otel-collector:4317 # switches export to OTLP
traces_sample_ratio: 1.0
traces_exporter: auto (OTLP if endpoint is set, console otherwise), otlp, console or none. Setup is idempotent per process.
Documentation
Full docs at dperezcabrera.github.io/pico-otel.
License
MIT
Project details
Release history Release notifications | RSS feed
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 pico_otel-0.1.0.tar.gz.
File metadata
- Download URL: pico_otel-0.1.0.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ee52c1abf77253022ce21b4f000afe07df7c9fd4c67331b0d3274c94810710a
|
|
| MD5 |
bb0d35cb9d728b9a7c67aa9ff8ec8527
|
|
| BLAKE2b-256 |
a72c87bd02028ad9ae0ca6fdcd20a8873e6f500945a692f609d0bc7c41b949a9
|
Provenance
The following attestation bundles were made for pico_otel-0.1.0.tar.gz:
Publisher:
publish-to-pypi.yml on dperezcabrera/pico-otel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pico_otel-0.1.0.tar.gz -
Subject digest:
1ee52c1abf77253022ce21b4f000afe07df7c9fd4c67331b0d3274c94810710a - Sigstore transparency entry: 2071278318
- Sigstore integration time:
-
Permalink:
dperezcabrera/pico-otel@ec63a49d2f0224147abc8144e2e1de77c964a9b9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/dperezcabrera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@ec63a49d2f0224147abc8144e2e1de77c964a9b9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pico_otel-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pico_otel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23a8b745aea1694cfeb4c04406f850eea6e025b660ead0864340da2c202d1aa3
|
|
| MD5 |
a8187d471b75c692d5031088abc35af8
|
|
| BLAKE2b-256 |
e57a0fbcc626727389cf2fb4090f10c6c01aaf3eed3677bdfc89585c712f1a4b
|
Provenance
The following attestation bundles were made for pico_otel-0.1.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on dperezcabrera/pico-otel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pico_otel-0.1.0-py3-none-any.whl -
Subject digest:
23a8b745aea1694cfeb4c04406f850eea6e025b660ead0864340da2c202d1aa3 - Sigstore transparency entry: 2071278328
- Sigstore integration time:
-
Permalink:
dperezcabrera/pico-otel@ec63a49d2f0224147abc8144e2e1de77c964a9b9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/dperezcabrera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@ec63a49d2f0224147abc8144e2e1de77c964a9b9 -
Trigger Event:
release
-
Statement type: