@@ -69,31 +69,19 @@ public class Emitter {
6969 {
7070 // This is kind of hacky because ClojureStorm shouldn't have anything related to
7171 // 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" ) ) {
7373 System .out .println ("ClojureStorm adding instrumentation auto prefix " + autoPrefix );
7474 addInstrumentationOnlyPrefix (autoPrefix );
7575 }
7676
7777 }
7878 }
7979
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 );
8882
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 );
9785
9886 String skipRegexProp = System .getProperty ("clojure.storm.instrumentSkipRegex" );
9987 if (skipRegexProp != null )
0 commit comments