{"library":"otel-instrumentation-postgres","type":"library","category":null,"description":"OpenTelemetry instrumentation for postgres.js (the PostgreSQL client for Node.js). Version 1.0.0 provides tracing and metrics (spans, histograms, counts) for database queries, connections, and performance insights. It captures query duration, SQL operation type, table names, parameter counts, and slow query detection. Configurable histogram buckets, parameter sanitization, and lifecycle hooks. Ships TypeScript types. Peer dependency on @opentelemetry/api ^1.9.0. Requires an OpenTelemetry SDK to be set up separately.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","postgresql","postgres.js","postgres","opentelemetry","instrumentation","tracing","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install otel-instrumentation-postgres","imports":["import { PostgresInstrumentation } from 'otel-instrumentation-postgres';","import { createOTELEmitter } from 'otel-instrumentation-postgres';","import type { PostgresInstrumentationConfig } from 'otel-instrumentation-postgres';"]},{"cmd":"yarn add otel-instrumentation-postgres","imports":[]},{"cmd":"pnpm add otel-instrumentation-postgres","imports":[]}],"homepage":"https://github.com/wataruoguchi/otel-instrumentation-postgres#readme","github":"https://github.com/wataruoguchi/otel-instrumentation-postgres","docs":null,"changelog":null,"pypi":null,"npm":"otel-instrumentation-postgres","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}