You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Setting it up
Start by adding AI to your project and build, explained here.
Copy DGTracingService and IDGTracingService into your plugins project (find it here under the Services folder)
Insert your instrumentation key at the top of DGTracingService
It is also possible to fetch the instrumentation key with the OrganizationService that resides in the LocalPluginContext constructor step 3 uses
Inside Plugin.cs add the following inside the LocalPluginContext constructor, below line containing this.TracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService));