{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/2"}],"enrichment":{"capability":"Adds OpenTelemetry tracing instrumentation to psycopg database connections, automatically capturing SQL queries and performance metrics for observability.","skillfed_tags":["observability","distributed-tracing","postgresql"],"use_cases":["Monitor slow database queries in production by capturing query spans and latency in your tracing backend.","Debug application performance issues by correlating database operations with upstream HTTP requests in distributed traces.","Audit database activity in compliance-sensitive applications by exporting query details to a centralized observability platform.","Measure database connection pool utilization and query patterns across microservices.","Integrate PostgreSQL query tracing into an existing OpenTelemetry observability stack."],"what_it_does":"This package integrates OpenTelemetry tracing into psycopg database connections, automatically instrumenting SQL queries to emit spans that capture execution details. It sits between your application and the psycopg driver, intercepting database operations and forwarding them to your configured OpenTelemetry exporters (e.g., Jaeger, Datadog, or any OTLP-compatible backend).\n\nIt is built on the OpenTelemetry instrumentation framework and depends on three core OpenTelemetry packages: opentelemetry-api, opentelemetry-instrumentation, and opentelemetry-instrumentation-dbapi. Once installed and initialized, it requires minimal code changes\u2014typically a single call to PsycopgInstrumentor().instrument()\u2014and then all psycopg queries become visible in your distributed tracing system. It is currently in Beta status and supports Python 3.10 through 3.14.","worth_installing":"Yes, if you are already using OpenTelemetry and need database observability for psycopg. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. The Beta status is acceptable for most observability use cases, though you should verify it covers your specific psycopg version and tracing requirements before deploying to production."},"id":"opentelemetry-instrumentation-psycopg","links":{"html":"https://skillfed.io/packages/opentelemetry-instrumentation-psycopg","md":"https://skillfed.io/packages/opentelemetry-instrumentation-psycopg.md","pypi":"https://pypi.org/project/opentelemetry-instrumentation-psycopg/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-16","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"opentelemetry-instrumentation-psycopg","python_support":"supports_current","summary":"OpenTelemetry psycopg instrumentation"},"popularity":{"monthly_downloads":5710065,"position":2048,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.65b0"}
