{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/4"}],"enrichment":{"capability":"Assigns unique correlation IDs to incoming HTTP requests and automatically includes them in Django logs, SQL queries, templates, and HTTP response headers to trace related log messages across a request lifecycle.","skillfed_tags":["request-tracing","django-middleware","logging-instrumentation"],"use_cases":["Trace all log messages belonging to a single user request across multiple application components and services.","Debug production issues by filtering logs by correlation ID to isolate the request that caused a problem.","Include correlation IDs in SQL query comments to link database activity to specific HTTP requests.","Pass correlation IDs to downstream microservices via HTTP headers to maintain request tracing across service boundaries.","Render correlation IDs in error pages or response headers for customer support reference."],"what_it_does":"Django Correlation ID is a middleware package that assigns a unique identifier to each incoming HTTP request and propagates it through the Django request/response cycle. This correlation ID can be automatically embedded in all log messages, SQL query comments, rendered templates, and HTTP response headers, making it easy to trace which log entries belong to the same request when debugging multi-request scenarios.\n\nThe package solves the problem of log attribution in complex systems where multiple requests are processed concurrently. Instead of manually threading request IDs through your codebase, django-cid handles this automatically via middleware, allowing you to correlate all side effects of a single request without explicit plumbing. It's particularly useful in service-oriented architectures where you need to pass the correlation ID to downstream services.","worth_installing":"Yes, if you use Django and need request tracing for debugging. The package is stable, has low install friction, and solves a real problem in multi-request logging scenarios. The dormant maintenance status is acceptable for a mature, feature-complete tool\u2014no active vulnerabilities and it supports current Django and Python versions. Install it if request correlation is important to your logging strategy."},"id":"django-cid","links":{"html":"https://skillfed.io/packages/django-cid","md":"https://skillfed.io/packages/django-cid.md","pypi":"https://pypi.org/project/django-cid/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-05-14","license_spdx":null,"license_treatment":"permissive","name":"django-cid","python_support":"supports_current","summary":"Correlation IDs in Django for debugging requests"},"popularity":{"monthly_downloads":129263,"position":11676,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0"}
