{"id":51530848,"url":"https://github.com/pretix/django-querytagger","last_synced_at":"2026-07-09T02:01:36.085Z","repository":{"id":368804230,"uuid":"1286880739","full_name":"pretix/django-querytagger","owner":"pretix","description":null,"archived":false,"fork":false,"pushed_at":"2026-07-02T09:56:37.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-02T10:14:19.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pretix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-02T07:20:06.000Z","updated_at":"2026-07-02T08:18:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pretix/django-querytagger","commit_stats":null,"previous_names":["pretix/django-querytagger"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pretix/django-querytagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pretix%2Fdjango-querytagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pretix%2Fdjango-querytagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pretix%2Fdjango-querytagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pretix%2Fdjango-querytagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pretix","download_url":"https://codeload.github.com/pretix/django-querytagger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pretix%2Fdjango-querytagger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35283905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-09T02:00:07.329Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-07-09T02:01:34.277Z","updated_at":"2026-07-09T02:01:36.079Z","avatar_url":"https://github.com/pretix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-querytagger\n==================\n\ndjango-querytagger allows to correlate SQL query logs in your database with your Django application and logs.\n\nInstallation\n------------\n\n- Add `django-querytagger` to your dependencies.\n- Add `django_querytagger` to `INSTALLED_APPS`\n- Add `django_querytagger.middleware.SetTagMiddleware` early in your middleware stack\n- Optionally, set `REQUEST_ID_HEADER` to the HTTP header you use for log correlation between webserver and django (make sure that these headers cannot be injected by users!)\n\nTag output\n----------\n\nFor Django views, the query will be modified to include the internal name of the resolved URL:\n\n    SELECT /* url=presale:event.index */ …\n\nOr, with a request ID header:\n\n    SELECT /* url=presale:event.index request=15fa49ec-2447-4bed-8785-581f02f2ab65 */ …\n\nFor Celery tasks, the query will be modified like this:\n\n    SELECT /* task=pretix.base.services.cart.add_items_to_cart taskid=e7fbba31-5d56-4e67-b0dd-155bcd5733d9 */ …\n\nFor management tasks, the query will be modified like this:\n\n    SELECT /* command=shell */ …\n\n\nCompatibility\n-------------\n\n- Django 6.0 tested, but probably any version\n- Python versions supported by Django\n- SQLite and PostgreSQL, but probably any database\n\nSecurity\n--------\n\nIf you discover a security issue, please contact us at security@pretix.eu and see our [Responsible Disclosure Policy](https://docs.pretix.eu/trust/security/disclosure/) further information.\n\nLicense\n-------\nThe code in this repository is published under the terms of the Apache License.\nSee the LICENSE file for the complete license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpretix%2Fdjango-querytagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpretix%2Fdjango-querytagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpretix%2Fdjango-querytagger/lists"}