File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
bootstrap/src/main/java/com/grafana
smoke-tests/src/test/java/com/grafana/extensions/smoketest Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ public class AgentStarted {
99 @ SuppressWarnings ("SystemOut" )
1010 public static void run (String agentArgs ) {
1111 boolean debug = false ;
12- if (!agentArgs .isEmpty ()) {
13- String [] options = agentArgs .split (", " );
12+ if (agentArgs != null && !agentArgs .isEmpty ()) {
13+ String [] options = agentArgs .split ("; " );
1414 for (String option : options ) {
1515 String [] keyValue = option .split ("=" );
1616 if (keyValue .length == 2 ) {
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ protected void startTarget(String extraCliArgs) {
8989 MountableFile .forHostPath (agentPath ), "/opentelemetry-javaagent.jar" )
9090 .withEnv (
9191 "JAVA_TOOL_OPTIONS" ,
92- "-javaagent:/opentelemetry-javaagent.jar=grafana.otel.debug-agent-startup=true, "
92+ "-javaagent:/opentelemetry-javaagent.jar=grafana.otel.debug-agent-startup=true; "
9393 + extraCliArgs )
9494 .withEnv ("OTEL_BSP_MAX_EXPORT_BATCH" , "1" )
9595 .withEnv ("OTEL_BSP_SCHEDULE_DELAY" , "10" )
You can’t perform that action at this time.
0 commit comments