Skip to content

Commit 8398e8f

Browse files
mverooned4nyll
andcommitted
Comment change from review
Co-authored-by: Daniel Li <dan@danyll.com>
1 parent c4763d9 commit 8398e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/instrumentation-runtime-node/src/metrics/eventLoopUtilizationCollector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { METRIC_NODEJS_EVENTLOOP_UTILIZATION } from '../semconv';
2222
const { eventLoopUtilization: eventLoopUtilizationCollector } = performance;
2323

2424
export class EventLoopUtilizationCollector extends BaseCollector {
25-
// Value needs to be initialized the first time otherwise the first measurement would be incorrectly small
25+
// Value needs to be initialized the first time otherwise the first measurement would always be 1
2626
// See https://github.com/open-telemetry/opentelemetry-js-contrib/pull/3118#issuecomment-3429737955
2727
private _lastValue: EventLoopUtilization = eventLoopUtilizationCollector();
2828

0 commit comments

Comments
 (0)