Spring boot runtime metrics#13078
Conversation
|
@jeanbisutti can you help me with the native failures:
|
|
@zeitlinger About 1., it seems an awaitility issue. Does the problem only appear with the new changes? Perhaps it may be worth to do something like About 2., About 3., it seems related to Tomcat searching memory leaks. With the full log we could know if it really comes from Tomcat. It does not seem possible to stop the
Native tests of this PR are failing during the native compilation step:
I would try to focus on the JMX or JFR metrics for a GraalVM native execution. GraalVM supports some JFR events, but not all of them. So, not sure that all the JFR metrics can work today in the native mode. |
I haven't seen that log before. |
|
we also have |
c0de41a to
b3c0f10
Compare
|
@jeanbisutti turned out that all prior errors were just a side effect of a jmx issue which is resolved now can you take a look again? |
...mmon/src/main/java/io/opentelemetry/spring/smoketest/AbstractOtelSpringStarterSmokeTest.java
Show resolved
Hide resolved
55b2482 to
ab2439a
Compare
...ary/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetrics.java
Outdated
Show resolved
Hide resolved
.../main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilder.java
Outdated
Show resolved
Hide resolved
|
@roberttoyonaga If you have time, it would be great if you could have a look at this PR. |
...rary/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/RuntimeMetrics.java
Outdated
Show resolved
Hide resolved
...c/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/RuntimeMetricsBuilder.java
Outdated
Show resolved
Hide resolved
...rary/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/RuntimeMetrics.java
Outdated
Show resolved
Hide resolved
| private static boolean useThreads() { | ||
| // GraalVM native image does not support ThreadMXBean yet | ||
| // see https://github.com/oracle/graal/issues/6101 | ||
| return !isJava9OrNewer() || System.getProperty("org.graalvm.nativeimage.imagecode") != null; |
There was a problem hiding this comment.
I think that GraalVM Native Image would work fine with Threads::java8Callback. Native Image implements some ThreadMXBean functionality, notably all the functionality needed by Threads::java8Callback (see here and here). Although, Threads::java9AndNewerCallback still won't work with Native Image since we don't support ThreadMXBean#getAllThreadIds() or ThreadMXBean.getThreadInfo() yet.
a130e3d to
e057797
Compare
|
@jeanbisutti now I get this - do you have an idea? Maybe we should split this PR to leave out naive image initially - and then add native image incrementally (JFR as last step) wdyt? |
|
These error messages are not very detailed ones 😅 You could create a first PR with only what works today with a JVM and a native image application. Another option may be to exclude the Example:
|
|
@zeitlinger Do you agree to close this one? |
|
Yes |
|
closing in favor of #13173 |
Fixes #12812