# @opentelemetry/sql-common

> Utilities for SQL instrumentations

Latest version **0.42.0** (published 2026-06-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @opentelemetry/sql-common
pnpm add @opentelemetry/sql-common
yarn add @opentelemetry/sql-common
bun add @opentelemetry/sql-common
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.42.0 |
| Published | 2026-06-11 |
| First published | 2023-06-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | ^18.19.0 \|\| >=20.6.0 |
| Dependencies | 1 |
| Unpacked size | 29.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 922 |
| Author | OpenTelemetry Authors |
| Maintainers | dyladan, pichlermarc, overbalance, npmjs-account, trentm, martinkuba |
| Keywords | opentelemetry, contrib, sql |

## Links

- npm: https://www.npmjs.com/package/@opentelemetry/sql-common
- Repository: https://github.com/open-telemetry/opentelemetry-js-contrib
- Homepage: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/sql-common#readme
- Issues: https://github.com/open-telemetry/opentelemetry-js-contrib/issues
- npm.io page: https://npm.io/package/@opentelemetry/sql-common

## Dependencies (1)

- [@opentelemetry/core](https://npm.io/package/@opentelemetry/core.md) ^2.0.0

## Recent versions

- 0.42.0 (latest) — 2026-06-11
- 0.41.2 — 2025-09-29
- 0.41.1 — 2025-09-29
- 0.41.0 — 2025-03-18
- 0.40.1 — 2024-04-25
- 0.40.0 — 2023-07-12
- 0.39.0 — 2023-06-22

## README

# Common Utils for OpenTelemetry SQL packages

This is an internal utils package used for the different SQL instrumentations:

1. mysql2
2. pg

---
_Source: https://npm.io/package/@opentelemetry/sql-common · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
