NServiceBus + Elastic APM


I just wondered if anyone has got Elastic APM working on an NServiceBus endpoint?

I have NSB running on Azure web apps and I’ve installed the Elastic APM agent. It’s supposed to log all dependencies such as Azure SQL and Redis. It logs the receipt of the incoming message but nothing else.It works fine on my APIs just not on the messaging apps.

The only thing I can think of is that it’s something to do with the dependency injection, which I use autofac for.



Hi @robgardner

I am not familiar with Elastic APM. I know NewRelic logs a ton of stuff without doing anything, but you specifically mention dependency injection. Do you mean that it doesn’t log anything after NServiceBus picks it up? What is “it logs the receipt of the incoming message”? With the information you’re providing us, it’s hard to figure out what is going on and if this is an issue with us or Elastic APM. Perhaps you can create a reproduction of the issue or if that requires too much Elastic APM infrastructure, provide more information.

We have several samples on how one can do logging/tracing with other libraries, maybe those can be of help: Logging and Metrics Samples • NServiceBus • Particular Docs