Skip to content

Commit

Permalink
fix(instrumentation-runtime-node): use the correct unit for eventloop…
Browse files Browse the repository at this point in the history
….utilization (#2631)

Co-authored-by: Marc Pichler <[email protected]>
  • Loading branch information
maryliag and pichlermarc authored Jan 9, 2025
1 parent 4cfcc59 commit 3350583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe(`${ConventionalNamePrefix.NodeJs}.${ATTR_NODEJS_EVENT_LOOP_UTILIZATION}

assert.strictEqual(
utilizationMetric!.descriptor.unit,
's',
'1',
'expected default unit'
);

Expand Down

0 comments on commit 3350583

Please sign in to comment.