We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce52b0f commit b7081eaCopy full SHA for b7081ea
lib/summary.js
@@ -18,6 +18,9 @@ class Summary extends Metric {
18
store: new LabelMap(),
19
});
20
21
+ if (this.labelNames.includes('quantile'))
22
+ throw new Error('quantile is a reserved label keyword');
23
+
24
this.type = 'summary';
25
this.store = new LabelMap(this.labelNames);
26
@@ -31,10 +34,6 @@ class Summary extends Metric {
31
34
},
32
35
);
33
36
}
- for (const label of this.labelNames) {
- if (label === 'quantile')
- throw new Error('quantile is a reserved label keyword');
37
- }
38
39
40
/**
0 commit comments