You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/ExpositionFormats.java
+28-2Lines changed: 28 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -63,9 +63,17 @@ public ExpositionFormatWriter findWriter(@Nullable String acceptHeader) {
63
63
returnprometheusProtobufWriter;
64
64
}
65
65
66
-
// Prefer OM2 over OM1 when any OM2 feature is enabled
67
66
if (isOpenMetrics2Enabled() && openMetrics2TextFormatWriter.accepts(acceptHeader)) {
68
-
returnopenMetrics2TextFormatWriter;
67
+
if (openMetrics2TextFormatWriter.getOpenMetrics2Properties().getContentNegotiation()) {
Copy file name to clipboardExpand all lines: prometheus-metrics-exposition-textformats/src/test/java/io/prometheus/metrics/expositionformats/ExpositionFormatsTest.java
0 commit comments