diff --git a/packages/instrumentation-runtime-node/src/metrics/eventLoopUtilizationCollector.ts b/packages/instrumentation-runtime-node/src/metrics/eventLoopUtilizationCollector.ts index 97a5642708..62f436c536 100644 --- a/packages/instrumentation-runtime-node/src/metrics/eventLoopUtilizationCollector.ts +++ b/packages/instrumentation-runtime-node/src/metrics/eventLoopUtilizationCollector.ts @@ -44,9 +44,10 @@ export class EventLoopUtilizationCollector extends BaseCollector { .addCallback(async observableResult => { if (!this._config.enabled) return; - const elu = eventLoopUtilizationCollector(this._lastValue); - observableResult.observe(elu.utilization); - this._lastValue = elu; + const currentELU = eventLoopUtilizationCollector(); + const deltaELU = eventLoopUtilizationCollector(currentELU, this._lastValue); + this._lastValue = currentELU; + observableResult.observe(deltaELU.utilization); }); }