Skip to main content

Comprehensive OpenTelemetry observability for Django with traces, logs, metrics, and profiling

Project description

Django O11y

Test Supported Python versions PyPI Version License

Drop-in observability for Django. Install it, add a small config, and get traces, structured logs, metrics, and profiling.

Features

  • OpenTelemetry traces for requests, database queries, cache, and Celery tasks
  • Structlog with colorized dev output, JSON production logs, and automatic trace correlation
  • django-prometheus for infrastructure metrics and a simple API for custom business metrics
  • Pyroscope continuous profiling
  • Full Celery observability: tracing, structured logs, and metrics
  • Pre-built Grafana dashboards
  • Sensible defaults, overridable via Django settings or environment variables
  • Management command to spin up a local observability stack for testing

Background

This package bundles the patterns from these blog posts into an installable library:

Docs

Read the full docs at adinhodovic.github.io/django-o11y.

License

Apache 2.0 - see LICENSE

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

django_o11y-0.7.2.tar.gz (4.5 MB view details)

Uploaded Source

Built Distribution

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

django_o11y-0.7.2-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

Details for the file django_o11y-0.7.2.tar.gz.

File metadata

  • Download URL: django_o11y-0.7.2.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_o11y-0.7.2.tar.gz
Algorithm Hash digest
SHA256 1ecf7b0f45a8a158dfecdd585e88ebb1a31c2e84fb0de503d1b06e951fad52c8
MD5 eb9896ce2ed930c27beedef6de78a5a0
BLAKE2b-256 2d8b5c97f4d0101a8d29becd65dd4995d8333ed5b45b0ff78e38424c6ad79b09

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_o11y-0.7.2.tar.gz:

Publisher: ci-cd.yml on adinhodovic/django-o11y

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

File details

Details for the file django_o11y-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: django_o11y-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 48.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_o11y-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c29409bebc40356c50752b79f7d1dce40ab7923f89c141a5ddd8d54bf51a9070
MD5 bc50306fd0fbe08f7707e5deb10a36d9
BLAKE2b-256 25f93e0446e7479f1e45674b873a61313248e402e161e95c120ca7124691cdeb

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_o11y-0.7.2-py3-none-any.whl:

Publisher: ci-cd.yml on adinhodovic/django-o11y

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