I created a new Custom Match Rules to detect business transaction when a specific method of specific class is executed. I created it by right clicking the stacktrace so class name and method name is correct. I have also recycled Application Pool but I still can't see the business transaction even though I can see from snapshots that the method I selected was called.
Is there anything else I should restart or configure?
The only thing that I can think of is:
1. Is the method actually getting called?
2. Is there another custom rule or other interceptor (Information Point, Method Invocation Data Collector) on that method (only one interceptor per method is supported in .NET).
If none of these is the case, you'll want to look at the agent logs to see if the method is being intercepted correctly
By the way it is a static method, can the issue be caused by this?
Static method is fine. I assume we are talking .NET, and you waited a minute or two before recycling the pool.
Check the spelling of the method and class. Make sure there are no spaces or invisible characters, and of course these are case sensitive.
Mike McFarland
I am sure that the spelling is correct because I added it from Drill Down window by clicking 'configure instrumentation for this method' options. I can also see that the configuration was saved to C:\ProgramData\AppDynamics\DotNetAgent\Data\data.xml file.
By the way I also created another Poco business transaction to an instance method in a subclass of DbContext class and after restarting application pool I started getting "System.InvalidProgramException: Common Language Runtime detected an invalid program." exception when that method was called.
Yes, the method is called and there are no other interceptors. Couldn't find anything inteseting in agent logs either.