Logging In Context - .net application

I’m trying to get logs in context working for a .net app. We are using NLog for forwarding. I’m trying to determine what the logic is for when logs should appear within the Distributed Tracing UI. Sometimes there are logs available, sometimes not. What conditions have to occur for logs to show up in the DT UI? Errors only? Specific errors? All help is appreciated.

Hi jon46!

You can easily correlate log messages to a related error trace or distributed trace in APM. This is accomplished by appending trace IDs to the corresponding application logs, automatically filtering to those logs from the errors or distributed trace UIs.