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: instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/MetricDef.java
Copy file name to clipboardExpand all lines: instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/MetricInfo.java
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ public enum Type {
27
27
// How to report the metric using OpenTelemetry API
28
28
privatefinalStringmetricName; // used as Instrument name
29
29
@NullableprivatefinalStringdescription;
30
+
@NullableprivatefinalStringsourceUnit;
30
31
@NullableprivatefinalStringunit;
31
32
privatefinalTypetype;
32
33
@@ -35,13 +36,19 @@ public enum Type {
35
36
*
36
37
* @param metricName a String that will be used as a metric name, it should be unique
37
38
* @param description a human readable description of the metric
39
+
* @param sourceUnit a human readable unit of measurement that is received from metric source
38
40
* @param unit a human readable unit of measurement
39
41
* @param type the instrument typ to be used for the metric
Copy file name to clipboardExpand all lines: instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/MetricRegistrar.java
Copy file name to clipboardExpand all lines: instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/yaml/MetricStructure.java
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ abstract class MetricStructure {
Copy file name to clipboardExpand all lines: instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/yaml/RuleParser.java
Copy file name to clipboardExpand all lines: instrumentation/jmx-metrics/library/src/test/java/io/opentelemetry/instrumentation/jmx/engine/RuleParserTest.java
0 commit comments