dotnet / dotnet/aspnetcore

Investigate collecting Blazor specific runtime metrics from a Blazor WebAssembly app

Open
#64,012 12 comments 0 reactions 0 assignees View on GitHub
area-blazor Docs
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

I only seem to be able to collect System.Runtime metrics from my Blazor WebAssembly app. We should investigate and document how to collect Blazor specific metrics too, like render diffs, page navigations, etc.

Repro steps:

- Install .NET 10 RC1 with the wasm-tools workload
- Clone https://github.com/danroth27/BlazorDiagnostics
- Run the app
- Browse to the Counter page
- In the browser dev console run `globalThis.getDotnetRuntime(0).collectMetrics({durationSeconds: 5});`
- Click on the counter to generate some runtime data
- Open the .nettrace file in VS

Expected result: Microsoft.AspNetCore.Components runtime metrics show up in the trace

Actual result: I only see System.Runtime metrics.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.