{"id":21314451,"url":"https://github.com/polyconseil/django-cid","last_synced_at":"2026-04-02T11:22:05.526Z","repository":{"id":19346569,"uuid":"22585779","full_name":"Polyconseil/django-cid","owner":"Polyconseil","description":"Correlation Id for Django ","archived":false,"fork":false,"pushed_at":"2024-05-14T15:55:07.000Z","size":170,"stargazers_count":42,"open_issues_count":3,"forks_count":18,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-24T09:40:23.400Z","etag":null,"topics":["correlation-id","debugging","django","logging","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Polyconseil.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-03T23:11:58.000Z","updated_at":"2025-01-28T05:04:42.000Z","dependencies_parsed_at":"2024-06-19T02:11:40.764Z","dependency_job_id":"4e63321e-9368-436b-97e2-0b1c5cefab3d","html_url":"https://github.com/Polyconseil/django-cid","commit_stats":{"total_commits":158,"total_committers":13,"mean_commits":"12.153846153846153","dds":"0.40506329113924056","last_synced_commit":"8ab7fe141e882ec80325723d7513b3eb2bea934e"},"previous_names":["snowball-digital/cid"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polyconseil%2Fdjango-cid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polyconseil%2Fdjango-cid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polyconseil%2Fdjango-cid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polyconseil%2Fdjango-cid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Polyconseil","download_url":"https://codeload.github.com/Polyconseil/django-cid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248662264,"owners_count":21141543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["correlation-id","debugging","django","logging","python"],"created_at":"2024-11-21T18:13:02.376Z","updated_at":"2025-12-14T03:24:06.813Z","avatar_url":"https://github.com/Polyconseil.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\nDjango Correlation ID\n=====================\n\nLogging is important. Anyone who has had a call at 3am to say the site\nis down knows this. Without quality logging it is almost impossible to\nwork out what on earth is happening.\n\nThe more you log, the harder it is to track down exactly what the\neffects of a particular request are. Enter Django Correlation ID.\nIncoming requests are assigned a unique identifier. This can either\nhappen in your public facing web server (e.g. nginx) or be applied\nby Django itself.\n\nThis correlation id (also known as request id) is then available\nthrough the Django request/response cycle and may be automatically\nincluded in all log messages. That way, you can easily link all log\nmessages that relate to the same request::\n\n    2018-10-01T08:18:39.86+00:00 correlation_id=2433d5d4-27a3-4889-b14b-107a131368a3 Call to plug from cpoint=1\n    2018-10-01T08:18:39.90+00:00 correlation_id=72fbd7dd-a0ba-4f92-9ed0-0db358338e86 Call to state by cpoint=2 with {'state': {'B': 'idle', 'A': 'on_charge'}}\n    2018-10-01T08:18:39.92+00:00 correlation_id=2433d5d4-27a3-4889-b14b-107a131368a3 Ended rental=7 customer=\"John Smith\" on plug\n\nIn this example, we can see that the first and the third log messages\nare tied to the same request, while the second message relates to a\ndistinct request.\n\nIn addition to these logs, ``django-cid`` can include the correlation\nid:\n\n- in all SQL queries (as a comment);\n- in rendered templates;\n- as a header in the HTTP response generated by Django;\n- and possibly anywhere by using the API of ``django-cid``, for\n  example as an HTTP header on a request to another internal system of\n  yours, which is especially useful in service-oriented architecture.\n\nDocumentation can be found at:  https://django-correlation-id.readthedocs.org/\n\nSources are on GitHub: https://github.com/Polyconseil/django-cid\n\n\nSupported versions\n------------------\n\nWe currently support Python \u003e= 3.8 and Django \u003e= 3.1.\n\nOther versions may work but are not supported.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyconseil%2Fdjango-cid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolyconseil%2Fdjango-cid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyconseil%2Fdjango-cid/lists"}