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.
.help()
1 parent c33fab0 commit b61dd23Copy full SHA for b61dd23
simpleclient/src/main/java/io/prometheus/client/SimpleCollector.java
@@ -162,7 +162,7 @@ protected SimpleCollector(Builder b) {
162
}
163
fullname = name;
164
checkMetricName(fullname);
165
- if (b.help.isEmpty()) throw new IllegalStateException("Help hasn't been set.");
+ if (b.help != null && b.help.isEmpty()) throw new IllegalStateException("Help hasn't been set.");
166
help = b.help;
167
labelNames = Arrays.asList(b.labelNames);
168
0 commit comments