best practice for Application Insights with Blazor Server

Denny Figuerres 0 Reputation points

i have seen multiple posts about Blazor Web Assembly and Application Insights but almost zero on how to best use application insights with Blazor server.

is the only way to treat blazor server like web assembly ?

are there any guides on how to get full monitoring and logging for Blazor server ?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,484 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
3,776 questions
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,211 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce ( 48,881 Reputation points

    as Blazor Server is a single request to logging and Application Insights, you need to add you own.

    You can use injection

    you can also inject a TelemetryClient

    Hint: create a custom Blazor router that calls TelemetryClient.