{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/5"}],"enrichment":{"capability":"Automatically injects metadata comments into SQL queries executed through Django, SQLAlchemy, or Psycopg2, capturing framework version, route, controller, and optionally trace context.","skillfed_tags":["sql-instrumentation","observability","abandoned"],"use_cases":["Add framework and route metadata to SQL logs in Django applications to correlate slow queries with specific views","Inject trace IDs into SQLAlchemy queries for distributed tracing across microservices","Embed driver and connection pool info in Psycopg2 logs to debug database connection issues","Capture OpenTelemetry trace context in SQL comments for end-to-end request tracing","Augment database audit logs with application context without modifying query code"],"what_it_does":"sqlcommenter is a set of middleware and cursor factories that automatically append SQL comments containing metadata to database queries. It works by intercepting queries at the ORM or driver level\u2014Django middleware, SQLAlchemy event listeners, or Psycopg2 cursor factories\u2014and injecting structured comments that capture framework version, HTTP route, controller/endpoint name, and optionally distributed trace context via OpenCensus or OpenTelemetry. The comments appear in database logs, making it easier to correlate slow queries or errors back to the application code that triggered them.\n\nThe package supports Django, SQLAlchemy, and Psycopg2 with configurable options for which metadata to include. It has no runtime dependencies for basic use, though OpenCensus and OpenTelemetry can be installed as optional extras. However, the project is abandoned\u2014the last release was 2021-08-18\u2014so it will not receive updates for compatibility with newer framework versions or security fixes.","worth_installing":"No. The package is abandoned (last release 2021-08-18) and will not receive updates for compatibility with modern framework versions or security issues. While the core concept is sound and the BSD license is permissive, the lack of maintenance makes it a liability for new projects. Consider alternatives that are actively maintained."},"id":"google-cloud-sqlcommenter","links":{"html":"https://skillfed.io/packages/google-cloud-sqlcommenter","md":"https://skillfed.io/packages/google-cloud-sqlcommenter.md","pypi":"https://pypi.org/project/google-cloud-sqlcommenter/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-08-18","license_spdx":null,"license_treatment":"permissive","name":"google-cloud-sqlcommenter","python_support":"unspecified","summary":"Augment SQL statements with meta information about frameworks and the running environment."},"popularity":{"monthly_downloads":534275,"position":6136,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
