-
Notifications
You must be signed in to change notification settings - Fork 7
AI Method 1
Ahmad Sattar edited this page Oct 24, 2019
·
10 revisions
Example configuration can be found here.
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:
- Copy the DGTracingService and IDGTracingService into your plugins project
- Insert your instrumentation key at the top of DGTracingService
- It is also possible to fetch the instrumentation key with the
OrganizationService
that resides in theLocalPluginContext
constructor step 3 uses
- It is also possible to fetch the instrumentation key with the
- Inside
Plugin.cs
add the following inside theLocalPluginContext
constructor, below line containingthis.TracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService));
this.TracingService = new DGTracingService(this.TracingService, this.PluginExecutionContext.CorrelationId);