Skip to content

[Pre7] Blazor diagnostics API updates #35772

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions aspnetcore/blazor/performance/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ For more information on the following performance meters, see <xref:log-mon/metr

`Microsoft.AspNetCore.Components` meter:

* `aspnetcore.components.navigation`: Tracks the total number of route changes in the app.
* `aspnetcore.components.event_handler`: Measures the duration of processing browser events, including business logic.
* `aspnetcore.components.navigate`: Tracks the total number of route changes in the app.
* `aspnetcore.components.handle_event.duration`: Measures the duration of processing browser events, including business logic.

`Microsoft.AspNetCore.Components.Lifecycle` meter:

* `aspnetcore.components.update_parameters`: Measures the duration of processing component parameters, including business logic.
* `aspnetcore.components.render_diff`: Tracks the duration of rendering batches.
* `aspnetcore.components.update_parameters.duration`: Measures the duration of processing component parameters, including business logic.
* `aspnetcore.components.render_diff.duration`: Tracks the duration of rendering batches.
* `aspnetcore.components.render_diff.size`: Tracks the size of rendering batches.

`Microsoft.AspNetCore.Components.Server.Circuits` meter:

Expand All @@ -80,7 +81,7 @@ The new activity tracing capabilities use the `Microsoft.AspNetCore.Components`

Circuit lifecycle tracing:

`Microsoft.AspNetCore.Components.CircuitStart`: Traces circuit initialization with the format `Circuit {circuitId}`.
`Microsoft.AspNetCore.Components.StartCircuit`: Traces circuit initialization with the format `Circuit {circuitId}`.

Tags:

Expand All @@ -96,7 +97,7 @@ Usage: Links other Blazor traces of the same session/circuit to HTTP and SignalR

Navigation tracing:

`Microsoft.AspNetCore.Components.RouteChange`: Tracks route changes with the format `Route {route} -> {componentType}`.
`Microsoft.AspNetCore.Components.Navigate`: Tracks route changes with the format `Route {route} -> {componentType}`.

Tags:

Expand All @@ -119,14 +120,12 @@ Event handling tracing:
Tags:

* `aspnetcore.components.attribute.name`: Name of the HTML attribute that triggers the event (example: `onClick`).
* `aspnetcore.components.method`: C# method name of the handler.
* `code.function.name`: C# method name of the handler.
* `aspnetcore.components.type`: Full name of target C# component that receives the event.
* `error.type`: Exception type full name (optional).

Links:

* HTTP trace
* SignalR trace
* Circuit trace
* Route trace

Expand Down