Node.js Runtime Metrics
Node.js runtime metrics show how memory, garbage collection, resources and the event loop are behaving on each instance of your Node.js services.
Trace0 now shows Node.js runtime metrics for services running on Node.js, alongside the request metrics you already see for each service. They come from the OpenTelemetry metrics the V8 and Node.js runtimes report, as defined by the OpenTelemetry semantic conventions for V8 JS metrics and the OpenTelemetry semantic conventions for Node.js metrics, so services using the OpenTelemetry JavaScript SDK (with auto-instrumentation or with the @opentelemetry/instrumentation-runtime-node module registered) report them without any extra setup.
The metrics include garbage collection duration per GC type, heap space used per space, active resources, event loop delay stats, and more.
Service Instances
Each instance of your service runs reports its own runtime metrics, so you view them one instance at a time. Trace0 identifies each instance from the resource attributes your service reports, such as the ECS Task ARN or Service Instance ID.
To view Node.js runtime metrics for one of your services, open the Metrics section, click View more for the service and select an instance from the instance filter. The example below shows the Node.js runtime metrics for a Node.js service running on ECS:
See our Node.js Metrics user guide for the full list of metrics and how each one is calculated.
Available via MCP
Node.js runtime metrics are also available to your AI agents through the Trace0 MCP server get_application_metrics tool. If the agent doesn’t pass an instance, the response lists the instance IDs it can pass to load the metrics for one instance.