File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/java/co/elastic/apm/agent/configuration
test/java/co/elastic/apm/agent/impl Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public static ServiceInfo autoDetected() {
63
63
return AUTO_DETECTED ;
64
64
}
65
65
66
- static ServiceInfo autoDetect (Properties properties ) {
66
+ public static ServiceInfo autoDetect (Properties properties ) {
67
67
String lambdaFunctionName = System .getenv ("AWS_LAMBDA_FUNCTION_NAME" );
68
68
if (lambdaFunctionName != null ) {
69
69
return new ServiceInfo (lambdaFunctionName , null );
Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ void testNotOverrideServiceNameWhenDefaultServiceNameConfigured() {
471
471
startTestRootTransaction ().end ();
472
472
473
473
CoreConfiguration coreConfig = localConfig .getConfig (CoreConfiguration .class );
474
- assertThat (ServiceInfo .autoDetected ( ).getServiceName ()).isEqualTo (coreConfig .getServiceName ());
474
+ assertThat (ServiceInfo .autoDetect ( System . getProperties () ).getServiceName ()).isEqualTo (coreConfig .getServiceName ());
475
475
assertThat (reporter .getFirstTransaction ().getTraceContext ().getServiceName ()).isNull ();
476
476
if (command != null ) {
477
477
System .setProperty ("sun.java.command" , command );
You can’t perform that action at this time.
0 commit comments