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.5.0.tar.gz (146.8 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.5.0-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_o11y-0.5.0.tar.gz
  • Upload date:
  • Size: 146.8 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.5.0.tar.gz
Algorithm Hash digest
SHA256 2442391b597a13f7f95addef1cd07a8fd6e38c8483e685d5fe552c979daa59e7
MD5 bfacd6ad50e65ff50739519d18279556
BLAKE2b-256 b65ae38bfb9296794594d34d51d5a43f6d5e15ff675839bdf783da64cba07a19

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: django_o11y-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 42.8 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 021c3105b59e43f9f4b65d859e79f6aaa7ee30d914a24ff16664c99e2f624bb1
MD5 8373f5f0004318aed37d7bad6b78110f
BLAKE2b-256 bfa68fe214b08404b442316b793b90c93486f024d1fbb9c9dd3b4ed7a167868b

See more details on using hashes here.

Provenance

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