We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51b0086 commit ca6187aCopy full SHA for ca6187a
runtime-attach/runtime-attach-core/src/main/java/io/opentelemetry/contrib/attach/CoreRuntimeAttach.java
@@ -19,6 +19,8 @@ public final class CoreRuntimeAttach {
19
20
private final String agentJarResourceName;
21
22
+ private boolean runtimeAttachmentRequested;
23
+
24
/**
25
* Creates a new {@code DistroRuntimeAttach} from the resource name of the agent jar.
26
*
@@ -37,6 +39,11 @@ public void attachJavaagentToCurrentJVM() {
37
39
return;
38
40
}
41
42
+ if (runtimeAttachmentRequested) {
43
+ return;
44
+ }
45
+ runtimeAttachmentRequested = true;
46
47
AgentFileProvider agentFileProvider = new AgentFileProvider(agentJarResourceName);
48
49
File javaagentFile = agentFileProvider.getAgentFile();
0 commit comments