diff --git a/plugins/node/instrumentation-runtime-node/src/metrics/eventLoopUtilizationCollector.ts b/plugins/node/instrumentation-runtime-node/src/metrics/eventLoopUtilizationCollector.ts index 321e54aa6f..97a5642708 100644 --- a/plugins/node/instrumentation-runtime-node/src/metrics/eventLoopUtilizationCollector.ts +++ b/plugins/node/instrumentation-runtime-node/src/metrics/eventLoopUtilizationCollector.ts @@ -38,7 +38,7 @@ export class EventLoopUtilizationCollector extends BaseCollector { `${this.namePrefix}.${ATTR_NODEJS_EVENT_LOOP_UTILIZATION}`, { description: 'Event loop utilization', - unit: 's', + unit: '1', } ) .addCallback(async observableResult => { diff --git a/plugins/node/instrumentation-runtime-node/test/event_loop_utilization.test.ts b/plugins/node/instrumentation-runtime-node/test/event_loop_utilization.test.ts index 77aaf77a9d..e434557f20 100644 --- a/plugins/node/instrumentation-runtime-node/test/event_loop_utilization.test.ts +++ b/plugins/node/instrumentation-runtime-node/test/event_loop_utilization.test.ts @@ -90,7 +90,7 @@ describe(`${ConventionalNamePrefix.NodeJs}.${ATTR_NODEJS_EVENT_LOOP_UTILIZATION} assert.strictEqual( utilizationMetric!.descriptor.unit, - 's', + '1', 'expected default unit' );