cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Exclude methods from a sensor pack

leo_selochnik1
Participant

Hello,

Let's say a method sensor is defined at the package level with the <all methods>(star)  option. At some point it's become obvious that several  methods that belong to the package pollute purepaths (the number of captured method invocations  within the PurePath exceeds the limit). Is there a way to exclude those methods from being captured? I've tried to add another sensor pack with these methods in exclude/inactive state, but it doesn't seem to be working.

Regards,

Leo

 

3 REPLIES 3

graeme_william1
Inactive

Leo,

First, if you want to exclude a method, you need the method sensor to be "active".  It's a little bit counter-intuitive, but what you saying is that the exclusion is active (or not).

Second, if you want to exclude something in another sensor pack, you need to set the exclusion to "globally exclude".  Setting "exclude" just exclude the specific method from the sensor pack it's in.

HTH,

-- Graeme

benjamin_styx
Dynatrace Helper
Dynatrace Helper

Hello Leo,

Alternatively I believe you are able to define rules for methods within the same sensor pack so that these methods are excluded. You would just need to make sure that the exclude rule is placed above the include rule for <all methods>. This would ensure that the exclude rule is processed first.

Ben

leo_selochnik1
Participant

Graeme/Ben, thanks a lot for the quick response - will put your advice to work right away

Leo