Method Timing in Java 25 with JFR and OpenTelemetry

Recently, I asked whether the Elastic APM agent could support Micrometer’s @Timed annotation for method-level timings. That feature would let me avoid using AspectJ solely for this purpose. Of course, I could add manual instrumentation, but I’d rather not pollute my business logic with observability concerns. JEP 520 , arriving with Java 25, introduces jdk.MethodTiming and jdk.MethodTrace events…