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
Add stable Metrics class to decouple consumers from protobuf version
The generated protobuf Metrics.java lives in a versioned package that
changes every protobuf release, requiring import updates in all consumer
files. Introduce a stable extending class in the version-free package
so consumers import from a single stable location. On protobuf upgrades
only the extends clause in the stable class changes, handled
automatically by generate-protobuf.sh.
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Copy file name to clipboardExpand all lines: prometheus-metrics-exposition-formats/src/main/generated/io/prometheus/metrics/expositionformats/generated/com_google_protobuf_4_33_5/Metrics.java
Copy file name to clipboardExpand all lines: prometheus-metrics-exposition-formats/src/main/java/io/prometheus/metrics/expositionformats/internal/PrometheusProtobufWriterImpl.java
Copy file name to clipboardExpand all lines: prometheus-metrics-exposition-formats/src/test/java/io/prometheus/metrics/expositionformats/DuplicateNamesProtobufTest.java
Copy file name to clipboardExpand all lines: prometheus-metrics-exposition-formats/src/test/java/io/prometheus/metrics/expositionformats/ProtobufExpositionFormatsTest.java
0 commit comments