File tree 1 file changed +1
-4
lines changed
dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/probe
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 41
41
import java .util .List ;
42
42
import java .util .Objects ;
43
43
import java .util .function .Consumer ;
44
- import java .util .regex .Pattern ;
45
44
import org .slf4j .Logger ;
46
45
import org .slf4j .LoggerFactory ;
47
46
@@ -51,8 +50,6 @@ public class LogProbe extends ProbeDefinition {
51
50
private static final Limits LIMITS = new Limits (1 , 3 , 8192 , 5 );
52
51
private static final int LOG_MSG_LIMIT = 8192 ;
53
52
54
- private static final Pattern SPLIT_WATCHES_PATTERN = Pattern .compile ("," );
55
-
56
53
/** Stores part of a templated message either a str or an expression */
57
54
public static class Segment {
58
55
private final String str ;
@@ -340,7 +337,7 @@ private static List<ValueScript> parseWatchesFromTags(Tag[] tags) {
340
337
if ("dd_watches_dsl" .equals (tag .getKey ())) {
341
338
String ddWatches = tag .getValue ();
342
339
// this for POC only, parsing is not robust!
343
- String [] splitWatches = SPLIT_WATCHES_PATTERN .split (ddWatches );
340
+ String [] splitWatches = ddWatches .split ("," );
344
341
for (String watchDef : splitWatches ) {
345
342
// remove curly braces
346
343
String refPath = watchDef .substring (1 , watchDef .length () - 1 );
You can’t perform that action at this time.
0 commit comments