-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Web analytics and diagnostics #5461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does Serilog "just work" for something like this? |
In general, .NET Standard 2.0 libraries should work from a Blazor app. Which sinks are most interesting to you? |
Azure Application Insights and Seq, https://getseq.net, are the two I use most often. |
I playing with setting up Application Insights inside Blazor. That seems trivial task if I just copy paste JS initialization code inside |
Why not? Isn't the instrumentation key typically embedded in the JS code? https://docs.microsoft.com/en-us/azure/application-insights/app-insights-javascript#add-the-sdk-script-to-your-app-or-web-pages |
I have project which will use different AI accounts for staging and for production. (Assuming that Blazor will take off). Also I use same AI key for API and for Blazor application, which require me to sync them, or worse - ask customer to manually replace AI key in two places. Since Blazor use index.html for serving application, and at the same time there no way to pass command line parameters when I embed Blazor in ASP.NET Core website (no parameters here |
Hi, I just created a Google Analytics extension for Blazor. I think it could be relevant to this ticket. This library can be extended for multiple analytics providers easily (+add TrackingService for complex operations) |
I hope you don't mind but I have used your library for inspiration to implement as you suggest. |
Is there any update on this? I would prefer to use dotnet rather than js to send telemetry events, as this would allow for easily consuming existing logging code in a wasm app. |
Hi all, I also would prefer registering AI instance into IoC container on the program.cs, like HttpClient, and then inject telemetry client each .razor pages. Otherwise, we can't track C# exceptions in a proper way. Many Thanks |
I just released https://github.com/IvanJosipovic/BlazorApplicationInsights |
Might be related to #30972 |
@danroth27 Is there an ETA for this? This issue has been languishing for over 4 years now; almost two years after @SteveSandersonMS has labelled it as a major severity. We had expected this to be ready with .net 6 release. The implication is that it is creating strong headwinds against us convincing folks #BlazorWASM has critical mass and is production ready. |
You can use the javascript appinsights sdk -> same with google analytics. In my production app we use the following packages both are working very well without much work to setup |
@CoryKoehler We are aware of the two packages [they have cropped up earlier in this thread years back ]. But the recent log4j scare has completely changed the landscape; especially in the enterprise sector. Mind you, they are official AppInsights plugins for react and angular; we are demanding parity for BlazorWASM and we solicit your support in this regard. |
Hello, I am coming from - microsoft/ApplicationInsights-dotnet#2143 that has referenced this issue. Please inform us about plan and status for supporting Application insights in .NET 6 SDK via dotnet new blazorwasm Thank you |
For folks considering jumping from react to blazor, please add native blazor wasm support for Azure AI |
I can confirm that this is causing headwinds for the same reasons @indcoder pointed out. Enterprise sentiment has shifted negatively towards third-party logging providers and having native support for Azure AI is definitely crucial. A similar discussion can be found at microsoft/ApplicationInsights-dotnet#2143 |
After 4 years I still haven't been able to associate logs with username or current url in Blazor Server. How this cannot be prioritized is beyond my understanding |
@Liero I think that this should be resolved under Application Insights team and their SDK which should support Blazor WASM here is feature request - microsoft/ApplicationInsights-dotnet#2143 |
Hey @danroth27 I totally think a third party solution like @IvanJosipovic shouldn't be necessary to get all the stuff working OOB for such a key component of ASP.NET as Blazor webassembly. Seems like the two teams should sit down and figure out what's missing on either end. It might just be that the AI team needs to get some pressure from the ASP.NET team 😉 |
Thanks for contacting us. We're moving this issue to the |
Since no progress here for a years. |
I've split this issue down in to three sub-issues that we are tracking separately. Since this issue is no longer tracking anything on its own, I'm going to go ahead and close it. |
The text was updated successfully, but these errors were encountered: