@opentelemetry/api-metrics 0.31.0
Public metrics API for OpenTelemetry
@opentelemetry/api-metrics@0.31.0 was published on 2022-07-26. Its manifest declares 1 runtime dependency and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=14.
Deprecated: Please use @opentelemetry/api >= 1.3.0
All @opentelemetry/api-metrics versions · Permanent reference to 0.31.0 · Latest release
Package specifications
| Version | 0.31.0 |
|---|---|
| License declaration | Apache-2.0 |
| Published | 2022-07-26T20:52:05.990Z |
| Node.js requirement | >=14 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 1 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 227.85 KiB |
| Published file count | 138 |
| Package type | Not declared |
| ES module entry | build/esm/index.js |
| Default entry | build/src/index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 1 |
| Repository stars | 3503 |
| Repository forks | 1185 |
Install @opentelemetry/api-metrics 0.31.0
npm install @opentelemetry/api-metrics@0.31.0 pnpm add @opentelemetry/api-metrics@0.31.0 yarn add @opentelemetry/api-metrics@0.31.0
Runtime dependencies
- @opentelemetry/api ^1.0.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @opentelemetry/api@1.10.0 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 10/10 — all changesets reviewed |
|---|---|
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Maintained | 10/10 — 30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Token-Permissions | 10/10 — GitHub workflow tokens follow principle of least privilege |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| License | 10/10 — license file detected |
| Signed-Releases | 0/10 — Project has not signed or included provenance with any releases. |
| Branch-Protection | 4/10 — branch protection is not maximal on development and all release branches |
| Security-Policy | 10/10 — security policy file detected |
| Pinned-Dependencies | 8/10 — dependency not pinned by hash detected -- score normalized to 8 |
| Fuzzing | 0/10 — project is not fuzzed |
| SAST | 10/10 — SAST tool is run on all commits |
Evidence and freshness
- https://registry.npmjs.org/%40opentelemetry%2Fapi-metrics/0.31.0 — retrieved 2026-10-29T17:14:19.149Z
- https://api.deps.dev/v3/projects/github.com%2Fopen-telemetry%2Fopentelemetry-js — retrieved 2026-10-29T12:11:46.985Z
- https://api.deps.dev/v3/systems/npm/packages/%40opentelemetry%2Fapi-metrics/versions/0.31.0 — retrieved 2026-10-29T17:14:19.664Z
- https://api.deps.dev/v3/systems/npm/packages/%40opentelemetry%2Fapi-metrics/versions/0.31.0:dependencies — retrieved 2026-10-29T17:14:19.693Z