Skip to content

Commit af5122f

Browse files
committed
format
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent f7660cb commit af5122f

File tree

1 file changed

+5
-5
lines changed
  • prometheus-metrics-exporter-opentelemetry/src/main/java/io/prometheus/metrics/exporter/opentelemetry/otelmodel

1 file changed

+5
-5
lines changed

prometheus-metrics-exporter-opentelemetry/src/main/java/io/prometheus/metrics/exporter/opentelemetry/otelmodel/PrometheusMetricData.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static String convertUnit(Unit unit) {
5353
return null;
5454
}
5555
switch (unit.toString()) {
56-
// Time
56+
// Time
5757
case "days":
5858
return "d";
5959
case "hours":
@@ -68,7 +68,7 @@ static String convertUnit(Unit unit) {
6868
return "us";
6969
case "nanoseconds":
7070
return "ns";
71-
// Bytes
71+
// Bytes
7272
case "bytes":
7373
return "By";
7474
case "kibibytes":
@@ -87,7 +87,7 @@ static String convertUnit(Unit unit) {
8787
return "GBy";
8888
case "terabytes":
8989
return "TBy";
90-
// SI
90+
// SI
9191
case "meters":
9292
return "m";
9393
case "volts":
@@ -100,14 +100,14 @@ static String convertUnit(Unit unit) {
100100
return "W";
101101
case "grams":
102102
return "g";
103-
// Misc
103+
// Misc
104104
case "celsius":
105105
return "Cel";
106106
case "hertz":
107107
return "Hz";
108108
case "percent":
109109
return "%";
110-
// default
110+
// default
111111
default:
112112
return unit.toString();
113113
}

0 commit comments

Comments
 (0)