-
Book Overview & Buying
-
Table Of Contents
Web Development with Blazor - Fourth Edition
By :
Everything we've looked at so far in this chapter – including metrics, traces, circuits, and navigation telemetry – applies to Blazor Server. That data comes from the server runtime and is automatically picked up by Aspire.
But Blazor WebAssembly is different.
In Blazor WebAssembly, the app runs entirely inside the browser. There is no server-side runtime managing components, circuits, or navigation. Because of that, the built-in Blazor metrics and traces simply don't exist for WebAssembly apps. There's nothing for Aspire to collect, because the runtime is running in the browser, not on the server.
That doesn't mean we're blind; it just means we use different tools.
Instead of metrics and traces, Blazor WebAssembly relies on diagnostics. These diagnostics come from the underlying .NET runtime that runs inside the browser, giving us insight into what's actually happening under the hood.
Through this runtime, we...