Xrm.DataManager.Framework.ApplicationInsights 2026.0.2

dotnet add package Xrm.DataManager.Framework.ApplicationInsights --version 2026.0.2
                    
NuGet\Install-Package Xrm.DataManager.Framework.ApplicationInsights -Version 2026.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xrm.DataManager.Framework.ApplicationInsights" Version="2026.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Xrm.DataManager.Framework.ApplicationInsights" Version="2026.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Xrm.DataManager.Framework.ApplicationInsights" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Xrm.DataManager.Framework.ApplicationInsights --version 2026.0.2
                    
#r "nuget: Xrm.DataManager.Framework.ApplicationInsights, 2026.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Xrm.DataManager.Framework.ApplicationInsights@2026.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Xrm.DataManager.Framework.ApplicationInsights&version=2026.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Xrm.DataManager.Framework.ApplicationInsights&version=2026.0.2
                    
Install as a Cake Tool

Xrm.DataManager.Framework.ApplicationInsights

Application Insights logger for Xrm.DataManager.Framework (Microsoft Dataverse batch jobs).

NuGet License

Job executions are traced in Application Insights :

  • Traces : job progress and information messages
  • Custom events : processed records (successes)
  • Exceptions : failures, with job and record context

Built on Application Insights SDK 3.x (OpenTelemetry based) : telemetry is flushed at the end of each job.

Getting started

Configuration

Add the Application Insights connection string in connectionStrings section of app.config, with the reserved name AppInsights :

<connectionStrings>
  <add name="Dev" connectionString="AuthType=ClientSecret;Url=https://dev.crm4.dynamics.com;ClientId=...;ClientSecret=..." />
  <add name="AppInsights" connectionString="InstrumentationKey=...;IngestionEndpoint=https://..." />
</connectionStrings>

The APPLICATIONINSIGHTS_CONNECTION_STRING environment variable is used when AppInsights entry is not defined (ex : Azure hosting).

Usage

Provide the logger to the processor constructor :

using (var processor = new JobProcessor(settings => new ApplicationInsightLogger(settings)))
{
    processor.Execute<MyDataJob>();
}

Or use Application Insights only when it is configured :

ILogger CreateLogger(JobSettings settings) => settings.ApplicationInsightsEnabled ? new ApplicationInsightLogger(settings) : new FileLogger(settings);

using (var processor = new Processor(CreateLogger))
{
    processor.Execute(args);
}

Settings

Key (appSettings) Default Description
LogLevel 1 0 : Verbose, 1 : Information, 2 : ErrorsAndSuccess, 3 : ErrorsOnly
Logging.Record.Attributes false Trace all record columns (record logical name and id are always traced). Keep disabled if records contain personal data

Documentation

Feedback

Questions, bugs and suggestions : GitHub issues.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.0.2 48 10/26/2026
2026.0.1 53 10/26/2026