# What changed in @opentelemetry/instrumentation-pg

> 15 changes in @opentelemetry/instrumentation-pg 0.61 to 0.78 from its official release notes, upgrade guides and advisories: 2 breaking, 2 security, 2 new APIs and options. Each one cited. Sources checked 2026-11-07. HTML: https://unstale.sh/npm/@opentelemetry/instrumentation-pg/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @opentelemetry/instrumentation-pg 0.78

### Fixes and other changes

- The peer API range was aligned with package dependency peer API ranges, clarifying compatible API versions. (0.78.0) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.78.0)

## @opentelemetry/instrumentation-pg 0.77

### Breaking changes

- The minimum supported Node.js version is raised to 22.15.0; Node.js 18 and 20 are no longer supported. (0.77.0) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.77.0)

## @opentelemetry/instrumentation-pg 0.76

### New APIs and options

- Adds connectionHook for connect spans. (0.76.0) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.76.0)

## @opentelemetry/instrumentation-pg 0.75

### Security

- Prometheus exporter process crash via malformed HTTP request (0.75.0) — [security advisory](https://github.com/advisories/GHSA-Q7RR-3CGH-J5R3)

## @opentelemetry/instrumentation-pg 0.74

### Behavior and default changes

- The instrumentation implements db.client.connection.max, adding this attribute to its telemetry. (0.74.0) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.74.0)

## @opentelemetry/instrumentation-pg 0.73

### Breaking changes

- Only stable HTTP, network, and database attributes are emitted. (0.73.0) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.73.0)

### Fixes and other changes

- Treat name as relevant only when it actually is a value. (0.73.0) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.73.0)

## @opentelemetry/instrumentation-pg 0.71

### Behavior and default changes

- Context is propagated using set application_name. (0.71.0) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.71.0)

## @opentelemetry/instrumentation-pg 0.65

### Security

- Multiple @opentelemetry/instrumentation-* packages expose database username via unconditional db.user span attribute (0.65.0) — [security advisory](https://github.com/advisories/GHSA-QQMP-WF37-98F9)

## @opentelemetry/instrumentation-pg 0.62

### New APIs and options

- Adds the skipConnectSpans option to instrumentation-pg. (0.62.0) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.62.0)

## @opentelemetry/instrumentation-pg 0.61

### Behavior and default changes

- The instrumentation records exceptions as span events. (0.61.0) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.61.0)

### Fixes and other changes

- Leading and trailing spaces in the database operation name are normalized. (0.61.2) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.61.2)
- Query props are captured when passed as a class instance. (0.61.2) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.61.2)
- The SQL template text property is preserved. (0.61.2) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.61.2)
- Query values passed as the second argument for prepared statements are now captured. (0.61.1) — [release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-pg-v0.61.1)
