fix double instrumentation (#13337)
This commit is contained in:
parent
d52a3b5110
commit
47c032c5d8
|
@ -19,6 +19,10 @@ public class Java8RuntimeMetricsInstaller implements AgentListener {
|
|||
|
||||
@Override
|
||||
public void afterAgent(AutoConfiguredOpenTelemetrySdk autoConfiguredSdk) {
|
||||
if (Double.parseDouble(System.getProperty("java.specification.version")) >= 17) {
|
||||
return;
|
||||
}
|
||||
|
||||
RuntimeMetrics runtimeMetrics =
|
||||
RuntimeMetricsConfigUtil.configure(
|
||||
RuntimeMetrics.builder(GlobalOpenTelemetry.get()), AgentInstrumentationConfig.get());
|
||||
|
|
Loading…
Reference in New Issue