Rename runtime attach method (#1077)
This commit is contained in:
parent
e46643159a
commit
5c6ac6fa11
|
@ -39,7 +39,7 @@ We give below an example for Spring Boot applications:
|
|||
public class SpringBootApp {
|
||||
|
||||
public static void main(String[] args) {
|
||||
RuntimeAttach.attachJavaagentToCurrentJVM();
|
||||
RuntimeAttach.attachJavaagentToCurrentJvm();
|
||||
SpringApplication.run(SpringBootApp.class, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class CoreRuntimeAttach {
|
|||
* beginning of the main method.
|
||||
*/
|
||||
@SuppressWarnings("MemberName")
|
||||
public void attachJavaagentToCurrentJVM() {
|
||||
public void attachJavaagentToCurrentJvm() {
|
||||
if (!shouldAttach()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -15,11 +15,11 @@ public final class RuntimeAttach {
|
|||
* beginning of the main method.
|
||||
*/
|
||||
@SuppressWarnings("MemberName")
|
||||
public static void attachJavaagentToCurrentJVM() {
|
||||
public static void attachJavaagentToCurrentJvm() {
|
||||
|
||||
CoreRuntimeAttach distroRuntimeAttach = new CoreRuntimeAttach("/otel-agent.jar");
|
||||
|
||||
distroRuntimeAttach.attachJavaagentToCurrentJVM();
|
||||
distroRuntimeAttach.attachJavaagentToCurrentJvm();
|
||||
}
|
||||
|
||||
private RuntimeAttach() {}
|
||||
|
|
|
@ -14,7 +14,7 @@ public class AgentDisabledByEnvironmentVariableTest extends AbstractAttachmentTe
|
|||
|
||||
@Test
|
||||
void shouldNotAttachWhenAgentDisabledWithEnvVariable() {
|
||||
RuntimeAttach.attachJavaagentToCurrentJVM();
|
||||
RuntimeAttach.attachJavaagentToCurrentJvm();
|
||||
verifyNoAttachment();
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ public class AgentDisabledBySystemPropertyTest extends AbstractAttachmentTest {
|
|||
|
||||
@Test
|
||||
void shouldNotAttachWhenAgentDisabledWithProperty() {
|
||||
RuntimeAttach.attachJavaagentToCurrentJVM();
|
||||
RuntimeAttach.attachJavaagentToCurrentJvm();
|
||||
verifyNoAttachment();
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ public class RunTimeAttachBasicTest extends AbstractAttachmentTest {
|
|||
|
||||
@Test
|
||||
void shouldAttach() {
|
||||
RuntimeAttach.attachJavaagentToCurrentJVM();
|
||||
RuntimeAttach.attachJavaagentToCurrentJvm();
|
||||
verifyAttachment();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue