@@ -69,31 +69,19 @@ public class Emitter {
69
69
{
70
70
// This is kind of hacky because ClojureStorm shouldn't have anything related to
71
71
// flow-storm, but we want to be sure that we never automatically instrument flow-storm root
72
- if (!autoPrefix .equals ("flow-storm" )) {
72
+ if (!autoPrefix .equals ("flow-storm" ) && ! autoPrefix . equals ( "clojure" ) ) {
73
73
System .out .println ("ClojureStorm adding instrumentation auto prefix " + autoPrefix );
74
74
addInstrumentationOnlyPrefix (autoPrefix );
75
75
}
76
76
77
77
}
78
78
}
79
79
80
- String onlyPrefixesProp = System .getProperty ("clojure.storm.instrumentOnlyPrefixes" );
81
- if (onlyPrefixesProp != null && !onlyPrefixesProp .isBlank ())
82
- {
83
- String [] prefixes = onlyPrefixesProp .split ("," );
84
- for (String p : prefixes )
85
- addInstrumentationOnlyPrefix (p );
86
-
87
- }
80
+ for (String p : Utils .prefixesForPropStartingWith ("clojure.storm.instrumentOnlyPrefixes" ))
81
+ addInstrumentationOnlyPrefix (p );
88
82
89
- String skipPrefixesProp = System .getProperty ("clojure.storm.instrumentSkipPrefixes" );
90
- if (skipPrefixesProp != null && !skipPrefixesProp .isBlank ())
91
- {
92
- String [] prefixes = skipPrefixesProp .split ("," );
93
- for (String p : prefixes )
94
- addInstrumentationSkipPrefix (p );
95
-
96
- }
83
+ for (String p : Utils .prefixesForPropStartingWith ("clojure.storm.instrumentSkipPrefixes" ))
84
+ addInstrumentationSkipPrefix (p );
97
85
98
86
String skipRegexProp = System .getProperty ("clojure.storm.instrumentSkipRegex" );
99
87
if (skipRegexProp != null )
0 commit comments