I have the Raygun AP agent installed on my server and it is pointed to the correct app pool for my WebAPI 2.2 web app.
Going to try to describe this as best I can...
I am trying to understand the traces: I am calling a route on the web app (using Swagger) but all I can see in the flamechart is ASP.NET system calls (in grey) and I can see My Code (purple) up to the SendAsync call in a MessageHandler before hitting the controller code, and then nothing else. There is a "gap" in the trace timeline where my deeper code is working and then I can see the end of the messagehandler's Async call being traced.
The route works successfully - I just can't see any of my controller code, deeper api code, database queries, etc in the trace. It doesn't seem to matter which webapi route call I make - anonymous or authorised - the traces are all missing the "middle bit" :)
I've edited to put some screenshots. Am I misunderstanding the sampling concept? This is still set to the 1 sample per 1 trace per 1 minute default.
I have noticed that if I deregister and re-register the app pool (or recycle the pool) in the Raygun Agent, the very first call to our API, the trace DOES capture everything but if I execute the call again straight-away, the trace behaviour goes back to what I described above.
Another odd thing is that the authenticate route always gets a full trace, but this is going through OWIN, not through my controllers.
Open to ideas!!