Skip to content

Commit a0d7c6f

Browse files
authored
public StatefulMetric (#1474)
All the other classes in the hierarchy are public too, this is probably just an oversight. --------- Signed-off-by: Ondra Pelech <ondra.pelech@gmail.com>
1 parent 6be85c5 commit a0d7c6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prometheus-metrics-core/src/main/java/io/prometheus/metrics/core/metrics/StatefulMetric.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
* because in Java <i>synchronous</i> and <i>asynchronous</i> usually refers to multi-threading, but
2929
* this has nothing to do with multi-threading.
3030
*/
31-
abstract class StatefulMetric<D extends DataPoint, T extends D> extends MetricWithFixedMetadata {
31+
public abstract class StatefulMetric<D extends DataPoint, T extends D>
32+
extends MetricWithFixedMetadata {
3233

3334
/** Map label values to data points. */
3435
private final ConcurrentHashMap<List<String>, T> data = new ConcurrentHashMap<>();

0 commit comments

Comments
 (0)