-
Notifications
You must be signed in to change notification settings - Fork 9
Error when instrumenting IList #7
Comments
Do you have a quick test-case class and expected output I can unit test against? Or is it actually raising an error? To be sure, I've not used New Relic for a while but the above looks like what I'd expect for a method that looks like
for example. |
Exactly, that's the method I'm creating the instrumentation for. The problem is those strange characters: "`1<" |
That's how New Relic's custom profiler used to require generics be specified - it's a mad combination of the backtick notation you sometimes see in reflection (like List`1) and standard generic notation, all HTML encoded. I take it then that the method isn't getting instrumented when you actually run it? It's possible New Relic changed how the instrumentation files are parsed, will be Christmas before I can replicate if that's the case though. |
I've tried this approach but I can't get it working. I'll open another ticket, let's see if I'm more lucky |
Sounds like they've changed how that gets specified then, as once upon a time it definitely worked. As a quick test, try removing the whole parameters attribute from the match element, so something like
In theory that'll just match anything with that name irrespective of the parameters (which might be more broad than you want, but that NRConfig has to fall back to in some situations). |
This is an old thread, but I ran into the same problem. What I had to do was use [ ] instead of the < > encoded. So my final looked like: instead of: to track down the problem, I followed these steps and checked the logs: |
I get the following code when generating the following instrumentation for an IList parameter method:
The text was updated successfully, but these errors were encountered: