Gathering detailed insights and metrics for @bradborgald/instrumentation-runtime-node
Gathering detailed insights and metrics for @bradborgald/instrumentation-runtime-node
Gathering detailed insights and metrics for @bradborgald/instrumentation-runtime-node
Gathering detailed insights and metrics for @bradborgald/instrumentation-runtime-node
OpenTelemetry instrumentation for JavaScript modules
npm install @bradborgald/instrumentation-runtime-node
Typescript
Module System
Min. Node Version
Node Version
NPM Version
plugin-react-load: v0.35.0
Updated on Jul 09, 2025
instrumentation-user-interaction: v0.48.0
Updated on Jul 09, 2025
instrumentation-long-task: v0.48.0
Updated on Jul 09, 2025
instrumentation-document-load: v0.48.0
Updated on Jul 09, 2025
instrumentation-winston: v0.48.0
Updated on Jul 09, 2025
instrumentation-router: v0.48.0
Updated on Jul 09, 2025
TypeScript (97.6%)
JavaScript (2.4%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
807 Stars
2,367 Commits
584 Forks
16 Watchers
8 Branches
296 Contributors
Updated on Jul 10, 2025
Latest Version
0.7.0
Package Id
@bradborgald/instrumentation-runtime-node@0.7.0
Unpacked Size
85.77 kB
Size
17.55 kB
File Count
45
NPM Version
10.8.2
Node Version
20.17.0
Published on
Sep 18, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
This module provides automatic metric instrumentation that exposes measurements from the Performance measurement APIs (i.e. perf_hooks
).
While currently it is limited to metrics, it may be modified to produce other signals in the future.
>=14.10
1npm install --save @opentelemetry/sdk-node @opentelemetry/exporter-prometheus 2npm install --save @opentelemetry/instrumentation-runtime-node
1import { NodeSDK } from '@opentelemetry/sdk-node'; 2import { PrometheusExporter } from '@opentelemetry/exporter-prometheus'; 3import { RuntimeNodeInstrumentation } from '@opentelemetry/instrumentation-runtime-node'; 4 5const prometheusExporter = new PrometheusExporter({ 6 port: 9464, 7 startServer: true 8}); 9 10const sdk = new NodeSDK({ 11 metricReader: prometheusExporter, 12 instrumentations: [new RuntimeNodeInstrumentation({ 13 monitoringPrecision: 5000, 14 })], 15}); 16 17sdk.start()
NodeSDK
is the full OpenTelemetry SDK for Node.js that is a layer of abstraction on top of the @opentelemetry/sdk-metrics
and @opentelemetry/sdk-trace-*
packages. By specifying metricReader
, it will initialize the metrics SDK and creates a MeterProvider
. @opentelemetry/exporter-prometheus
will output metrics collected by registered instrumentation on a /metrics
endpoint.
Go to localhost:9464/metrics
, and you should see:
1# HELP nodejs_performance_event_loop_utilization Event loop utilization 2# UNIT nodejs_performance_event_loop_utilization 1 3# TYPE nodejs_performance_event_loop_utilization gauge 4nodejs_performance_event_loop_utilization 0.010140079547955264
Metrics will only be exported after it has collected two ELU readings (at least approximately
RuntimeNodeInstrumentationConfig.monitoringPrecision
milliseconds after initialization). Otherwise, you may see:1# no registered metrics
RuntimeNodeInstrumentation
's constructor accepts the following options:
name | type | unit | default | description |
---|---|---|---|---|
monitoringPrecision | int | millisecond | 5000 | The approximate number of milliseconds for which to calculate event loop utilization averages. A larger value will result in more accurate averages at the expense of less granular data. Should be set to below the scrape interval of your metrics collector to avoid duplicated data points. |
Apache 2.0 - See LICENSE for more information.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
update tool detected
Details
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
30 out of 30 merged PRs checked by a CI test -- score normalized to 10
Reason
project has 42 contributing companies or organizations
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-10T18:43:29Z
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More