Soenneker.Blazor.ApplicationInsights
4.0.1886
Prefix Reserved
dotnet add package Soenneker.Blazor.ApplicationInsights --version 4.0.1886
NuGet\Install-Package Soenneker.Blazor.ApplicationInsights -Version 4.0.1886
<PackageReference Include="Soenneker.Blazor.ApplicationInsights" Version="4.0.1886" />
<PackageVersion Include="Soenneker.Blazor.ApplicationInsights" Version="4.0.1886" />
<PackageReference Include="Soenneker.Blazor.ApplicationInsights" />
paket add Soenneker.Blazor.ApplicationInsights --version 4.0.1886
#r "nuget: Soenneker.Blazor.ApplicationInsights, 4.0.1886"
#:package Soenneker.Blazor.ApplicationInsights@4.0.1886
#addin nuget:?package=Soenneker.Blazor.ApplicationInsights&version=4.0.1886
#tool nuget:?package=Soenneker.Blazor.ApplicationInsights&version=4.0.1886
Soenneker.Blazor.ApplicationInsights
Blazor JavaScript interop for loading Azure Application Insights in the browser and starting client-side telemetry.
Installation
dotnet add package Soenneker.Blazor.ApplicationInsights
Registration
using Soenneker.Blazor.ApplicationInsights.Registrars;
builder.Services.AddApplicationInsightsInteropAsScoped();
Initialize after the first render
JavaScript interop is required, so initialize from OnAfterRenderAsync rather than during component initialization:
@using Soenneker.Blazor.ApplicationInsights.Abstract
@inject IApplicationInsightsInterop ApplicationInsights
@inject IConfiguration Configuration
@code {
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (!firstRender)
return;
await ApplicationInsights.Init(
Configuration["ApplicationInsights:ConnectionString"]!);
}
}
Call Init once per application session. The interop begins tracking page load, browser exceptions, and fetch dependencies.
The browser downloads the Application Insights SDK from https://js.monitor.azure.com. If the application uses a Content Security Policy, allow that script origin and the ingestion endpoint named by the connection string. Telemetry is sent from the user's browser, so review captured URLs, headers, and exception data before enabling it in production.
The scoped service owns its imported JavaScript module and releases it when the scope is disposed.
| Product | Versions 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Soenneker.Blazor.Utils.ModuleImport (>= 4.0.1894)
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 |
|---|---|---|
| 4.0.1886 | 57 | 9/14/2026 |
| 4.0.1885 | 60 | 9/14/2026 |
| 4.0.1881 | 62 | 9/12/2026 |
| 4.0.1880 | 88 | 9/9/2026 |
| 4.0.1879 | 74 | 9/8/2026 |
| 4.0.1878 | 105 | 9/8/2026 |
| 4.0.1877 | 108 | 9/7/2026 |
| 4.0.1876 | 109 | 9/7/2026 |
| 4.0.1875 | 104 | 9/7/2026 |
| 4.0.1874 | 113 | 9/5/2026 |
| 4.0.1873 | 112 | 9/4/2026 |
| 4.0.1872 | 109 | 9/4/2026 |
| 4.0.1871 | 107 | 9/4/2026 |
| 4.0.1870 | 127 | 8/31/2026 |
| 4.0.1869 | 91 | 8/31/2026 |
| 4.0.1868 | 111 | 8/31/2026 |
| 4.0.1867 | 98 | 8/31/2026 |
| 4.0.1866 | 105 | 8/30/2026 |
| 4.0.1865 | 89 | 8/30/2026 |
| 4.0.1864 | 101 | 8/30/2026 |
Update dependency Soenneker.Blazor.Utils.ModuleImport to 4.0.1894 (#2532)