Skip to main content

OpenTelemetry auto-instrumentation for the Pico ecosystem: tracing, metrics and log correlation wired by entry points.

Project description

📦 pico-otel

PyPI Ask DeepWiki License: MIT CI (tox matrix) codecov Quality Gate Status Duplicated Lines (%) Maintainability Rating PyPI Downloads Docs Interactive Lab

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pico_otel-0.1.0.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pico_otel-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

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

Hashes for pico_otel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1ee52c1abf77253022ce21b4f000afe07df7c9fd4c67331b0d3274c94810710a
MD5 bb0d35cb9d728b9a7c67aa9ff8ec8527
BLAKE2b-256 a72c87bd02028ad9ae0ca6fdcd20a8873e6f500945a692f609d0bc7c41b949a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pico_otel-0.1.0.tar.gz:

Publisher: publish-to-pypi.yml on dperezcabrera/pico-otel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pico_otel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23a8b745aea1694cfeb4c04406f850eea6e025b660ead0864340da2c202d1aa3
MD5 a8187d471b75c692d5031088abc35af8
BLAKE2b-256 e57a0fbcc626727389cf2fb4090f10c6c01aaf3eed3677bdfc89585c712f1a4b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page