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/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/jmx/JmxMetricInsightInstaller.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ public void afterAgent(AutoConfiguredOpenTelemetrySdk autoConfiguredSdk) {
Copy file name to clipboardexpand all lines: instrumentation/jmx-metrics/javaagent/src/test/java/io/opentelemetry/instrumentation/javaagent/jmx/JmxMetricInsightInstallerTest.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ class JmxMetricInsightInstallerTest {
Copy file name to clipboardexpand all lines: instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/BeanAttributeExtractor.java
+21-20
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
importjavax.management.InstanceNotFoundException;
17
17
importjavax.management.MBeanAttributeInfo;
18
18
importjavax.management.MBeanInfo;
19
-
importjavax.management.MBeanServer;
19
+
importjavax.management.MBeanServerConnection;
20
20
importjavax.management.ObjectName;
21
21
importjavax.management.openmbean.CompositeData;
22
22
importjavax.management.openmbean.TabularData;
@@ -132,18 +132,17 @@ public String getAttributeName() {
132
132
* including the internals of CompositeData and TabularData, if applicable, and that the provided
133
133
* values will be numerical.
134
134
*
135
-
* @param server the MBeanServer that reported knowledge of the ObjectName
136
-
* @param objectName the ObjectName identifying the MBean
137
-
* @return AttributeInfo if the attribute is properly recognized, or null
135
+
* @param connection the {@link MBeanServerConnection} that reported knowledge of the ObjectName
136
+
* @param objectName the {@link ObjectName} identifying the MBean
Copy file name to clipboardexpand all lines: instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/BeanFinder.java
Copy file name to clipboardexpand all lines: instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/DetectionStatus.java
Copy file name to clipboardexpand all lines: instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/JmxMetricInsight.java
+27-2
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,11 @@
8
8
importstaticjava.util.logging.Level.FINE;
9
9
10
10
importio.opentelemetry.api.OpenTelemetry;
11
+
importjava.util.List;
12
+
importjava.util.function.Supplier;
11
13
importjava.util.logging.Logger;
14
+
importjavax.management.MBeanServerConnection;
15
+
importjavax.management.MBeanServerFactory;
12
16
13
17
/** Collecting and exporting JMX metrics. */
14
18
publicclassJmxMetricInsight {
@@ -33,7 +37,28 @@ private JmxMetricInsight(OpenTelemetry openTelemetry, long discoveryDelay) {
Copy file name to clipboardexpand all lines: instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/MetricAttribute.java
0 commit comments