File tree 2 files changed +3
-3
lines changed
bootstrap/src/main/java/com/grafana
smoke-tests/src/test/java/com/grafana/extensions/smoketest
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ public class AgentStarted {
9
9
@ SuppressWarnings ("SystemOut" )
10
10
public static void run (String agentArgs ) {
11
11
boolean debug = false ;
12
- if (!agentArgs .isEmpty ()) {
13
- String [] options = agentArgs .split (", " );
12
+ if (agentArgs != null && !agentArgs .isEmpty ()) {
13
+ String [] options = agentArgs .split ("; " );
14
14
for (String option : options ) {
15
15
String [] keyValue = option .split ("=" );
16
16
if (keyValue .length == 2 ) {
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ protected void startTarget(String extraCliArgs) {
89
89
MountableFile .forHostPath (agentPath ), "/opentelemetry-javaagent.jar" )
90
90
.withEnv (
91
91
"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; "
93
93
+ extraCliArgs )
94
94
.withEnv ("OTEL_BSP_MAX_EXPORT_BATCH" , "1" )
95
95
.withEnv ("OTEL_BSP_SCHEDULE_DELAY" , "10" )
You can’t perform that action at this time.
0 commit comments