Skip to content
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

Detect Blazor and ASP.NET applications for request tracing #569

Closed
amerjusupovic opened this issue Jul 2, 2024 · 3 comments
Closed

Detect Blazor and ASP.NET applications for request tracing #569

amerjusupovic opened this issue Jul 2, 2024 · 3 comments
Assignees

Comments

@amerjusupovic
Copy link
Member

Knowing the approximate proportion of ASP.NET applications out of all customers could be helpful for understanding which features are most important to our users, and which kinds of applications are using certain features.

@zhenlan
Copy link
Contributor

zhenlan commented Jul 3, 2024

@mrm9084 and I were discussing the flask and django usage for python applications. It's good if we can design something to capture the framework information.

@zhiyuanliang-ms
Copy link
Contributor

zhiyuanliang-ms commented Jul 8, 2024

There's no fool proof method to detect whether users are using Blazor or not. According to dotnet/aspnetcore#56633

Apps utilizing Blazor are not fundamentally different from other types of ASP.NET apps. ASP.NET Core supports mixing various frameworks together, so you could even have an app that utilizes both Razor Pages and Blazor. In fact, prior to .NET 8, most Blazor Server apps also used Razor Pages to host the root Blazor component. There isn't much that a class library can do to observe these types of detailed characteristics about the app.

The best we can do is to check which assemblies have been loaded (e.g. SignalR related stuff), but that's only a heuristic and subject to change at any point in the future.

@zhiyuanliang-ms zhiyuanliang-ms self-assigned this Jul 10, 2024
@zhiyuanliang-ms
Copy link
Contributor

Discussed with @jimmyca15 and @rossgrambo offline. We are going to collect whether there is Microsoft.AspNetCore.SignalR assembly. This assembly will be loaded as long as Blazor is unused. If we collect data showing that many people are using SignalR, it doesn't necessarily mean our users are using Blazor apps. However, if our data shows that few people are using SignalR, it definitely means the number of our users using Blazor apps won't be higher than this. Therefore, collecting information about SignalR can still provide us with some useful insights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants