Skip to content

AI Method 1

Ahmad Sattar edited this page Oct 24, 2019 · 10 revisions

1. Traces only

This first method of logging sends the same trace Dynamics 365 logs to AI, but correlates traces across invocation.
The logs would look like this: Trace logs of method 1

Setting it up

  1. Copy the DGTracingService and IDGTracingService into your plugins project
  2. Insert your instrumentation key at the top of DGTracingService
  3. Below line containing this.TracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService)); add
this.TracingService = new DGTracingService(this.TracingService, this.PluginExecutionContext.CorrelationId);
Clone this wiki locally