django-datadog-logger
Django Datadog Logger integration package.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It directly solves the problem of integrating Django logging with Datadog and is well-suited for teams already using Datadog for observability. Install it if you need structured logging in Django with Datadog compatibility; skip it if you use a different observability platform or don't need JSON-formatted logs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; Django 4.2, 5.2, or 6.0.
- Low friction install with three straightforward runtime dependencies (django, djangorestframework, json-log-formatter).
- Package is actively maintained with a recent release 37 days ago and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-07-08 (37 days) · last repo commit 2026-07-08 · 25 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 265,603 downloads/mo, #8,322 on PyPI
Alternatives
Verify before relying
pip install django-datadog-logger
# In Django settings.py MIDDLEWARE:
MIDDLEWARE = [
"django_datadog_logger.middleware.request_id.RequestIdMiddleware",
# ...
"django_datadog_logger.middleware.error_log.ErrorLoggingMiddleware",
"django_datadog_logger.middleware.request_log.RequestLoggingMiddleware",
]
# In LOGGING formatters:
from django_datadog_logger.formatters.datadog import DatadogJSONFormatter
formatter = DatadogJSONFormatter()- Whether ddtrace integration requires ddtrace library to be installed separately or if it's optional.
- Performance impact of request ID tracking and JSON formatting on high-throughput applications.
- Compatibility with non-Datadog logging backends or whether it's tightly coupled to Datadog.
- Whether Celery integration works with all Celery versions or has specific version constraints.
What it is and what it does
Django Datadog Logger is a middleware and formatter package that bridges Django applications with Datadog's logging infrastructure. It provides three core pieces: request ID middleware for tracking requests across logs, error and request logging middleware to capture HTTP lifecycle events, and a JSON formatter that outputs logs in Datadog-compatible format with automatic trace context injection when ddtrace is configured.
The package is designed to work alongside Django REST Framework and integrates with Celery for task logging. It allows you to configure separate log files for different concerns (application, state, request, session, error) and automatically injects Datadog trace IDs and span IDs into log records when ddtrace patching is enabled. Configuration is done through Django's standard LOGGING dictionary, making it fit naturally into existing Django setups.
Use it for
- Set up centralized JSON logging in a Django application for ingestion into Datadog monitoring.
- Track HTTP requests across distributed systems using request ID middleware and trace context.
- Separate application, error, and request logs into distinct files with structured JSON output.
- Integrate Celery task logging with Datadog tracing for end-to-end observability.
- Inject Datadog trace and span IDs into logs automatically when using ddtrace instrumentation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It directly solves the problem of integrating Django logging with Datadog and is well-suited for teams already using Datadog for observability. Install it if you need structured logging in Django with Datadog compatibility; skip it if you use a different observability platform or don't need JSON-formatted logs.
Install
django-datadog-logger on PyPI
Before you install
Low friction install with three straightforward runtime dependencies (django, djangorestframework, json-log-formatter). Package is actively maintained with a recent release 37 days ago and no known vulnerabilities.
Requires Python 3.10 or later; Django 4.2, 5.2, or 6.0.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install django-datadog-logger
# In Django settings.py MIDDLEWARE:
MIDDLEWARE = [
"django_datadog_logger.middleware.request_id.RequestIdMiddleware",
# ...
"django_datadog_logger.middleware.error_log.ErrorLoggingMiddleware",
"django_datadog_logger.middleware.request_log.RequestLoggingMiddleware",
]
# In LOGGING formatters:
from django_datadog_logger.formatters.datadog import DatadogJSONFormatter
formatter = DatadogJSONFormatter()
Verify before relying
- Whether ddtrace integration requires ddtrace library to be installed separately or if it's optional.
- Performance impact of request ID tracking and JSON formatting on high-throughput applications.
- Compatibility with non-Datadog logging backends or whether it's tightly coupled to Datadog.
- Whether Celery integration works with all Celery versions or has specific version constraints.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesdjangodjangorestframeworkjson-log-formatter |
| Maintenance | Actively maintained 37 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 265,603 / month, #8,322 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: django_datadog_logger-0.9.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django datadog logging integration”
- django-datadog-loggerIntegrates Django applications with Datadog logging by providing…
- django-structlogIntegrates structured logging into Django applications using…
- datadog-loggerSends Python log messages to Datadog as Events in the Events Explorer…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also ddtrace · django-log-formatter-asim · datadog-logger · django-request-id · safe-init · django-structlog · JSON-log-formatter · django-log-request-id · jsonformatter · json-logging