Skip to content

Commit

Permalink
chore: remove 'performance' from gauge name
Browse files Browse the repository at this point in the history
  • Loading branch information
d4nyll committed Jan 29, 2024
1 parent d585607 commit 0f643bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class PerfHooksInstrumentation extends InstrumentationBase {
// the Meter (result of @opentelemetry/api's getMeter) is available as this.meter within this method
override _updateMetricInstruments() {
this.meter
.createObservableGauge('nodejs.performance.event_loop.utilization', {
.createObservableGauge('nodejs.event_loop.utilization', {
description: 'Event loop utilization',
unit: '1',
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const instrumentation = new PerfHooksInstrumentation({

instrumentation.setMeterProvider(meterProvider);

describe('nodejs.performance.event_loop.utilization', () => {
describe('nodejs.event_loop.utilization', () => {
before(async () => {
instrumentation.enable();
});
Expand Down Expand Up @@ -78,7 +78,7 @@ describe('nodejs.performance.event_loop.utilization', () => {
assert.strictEqual(metrics[0].dataPoints[0].value < 1, true);
assert.strictEqual(
metrics[0].descriptor.name,
'nodejs.performance.event_loop.utilization'
'nodejs.event_loop.utilization'
);
assert.strictEqual(
metrics[0].descriptor.description,
Expand Down

0 comments on commit 0f643bf

Please sign in to comment.