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

Opinionated, off-the-shelf observability for Django. Drop it in and get traces, structured logs, metrics, and profiling wired up with sensible defaults.

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:

Documentation

To learn more about django-o11y, go to the complete documentation.

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.2.4.tar.gz (137.1 kB 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.2.4-py3-none-any.whl (41.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_o11y-0.2.4.tar.gz
  • Upload date:
  • Size: 137.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_o11y-0.2.4.tar.gz
Algorithm Hash digest
SHA256 294f8caadb766026e4852a27ed1f159d6e070adaab5b11b59172473eb3e56ea7
MD5 1db6d1087ffcdad45b661244328175a4
BLAKE2b-256 b9d510dcda839a5e06f5b6f1bd2f8e84e6135b0607964f599772ba9a641f91ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_o11y-0.2.4.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.2.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for django_o11y-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 68161a6fd346b4980091afab2dc187bcb358dc7f2fbd11f883e1957d2d71efec
MD5 ba121e44b62b372d0156630d94d97e4e
BLAKE2b-256 0348493087e4e58cd335e74cb7907653c6e5d68af20f9f1ae85e85b4773e9ab9

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_o11y-0.2.4-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