-
Notifications
You must be signed in to change notification settings - Fork 362
Add ASP.NET Core telemetry metrics and traces for .NET 10 #3012
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
Merged
Kielek
merged 7 commits into
open-telemetry:main
from
JamesNK:jamesnk/aspnetcore-net10-telemetry
Aug 21, 2025
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b941e6a
Add ASP.NET Core telemetry metrics and traces for .NET 10
JamesNK f956780
Change log
JamesNK 1ce03ba
PR feedback
JamesNK 3c70221
Fix
JamesNK c2570bc
Update src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreInstrum…
JamesNK 1fb9da4
Update src/OpenTelemetry.Instrumentation.AspNetCore/CHANGELOG.md
JamesNK 3e753df
Merge branch 'main' into jamesnk/aspnetcore-net10-telemetry
Kielek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| OpenTelemetry.Instrumentation.AspNetCore.AspNetCoreTraceInstrumentationOptions.EnableBlazorSupport.get -> bool | ||
| OpenTelemetry.Instrumentation.AspNetCore.AspNetCoreTraceInstrumentationOptions.EnableBlazorSupport.set -> void | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,57 @@ | |
|
|
||
| ## Unreleased | ||
|
|
||
| * Added support for listening to ASP.NET Core Blazor activities. | ||
JamesNK marked this conversation as resolved.
Show resolved
Hide resolved
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it Blazor only, or it should be adjusted?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Metrics were added for many features. |
||
| Configurable with the | ||
| `AspNetCoreTraceInstrumentationOptions.EnableBlazorSupport` | ||
JamesNK marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| option which defaults to `true`. Only applies to .NET 10.0 or greater. | ||
| ([#3012](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/3012)) | ||
|
|
||
| * Following metrics will now be enabled by default when targeting `.NET10.0` or | ||
| newer framework: | ||
|
|
||
| * **Meter** : `Microsoft.AspNetCore.MemoryPool` | ||
| * `aspnetcore.memory_pool.pooled` | ||
| * `aspnetcore.memory_pool.evicted` | ||
| * `aspnetcore.memory_pool.allocated` | ||
| * `aspnetcore.memory_pool.rented` | ||
| * **Meter** : `Microsoft.AspNetCore.Authentication` | ||
| * `aspnetcore.authentication.authenticate.duration` | ||
| * `aspnetcore.authentication.challenges` | ||
| * `aspnetcore.authentication.forbids` | ||
| * `aspnetcore.authentication.sign_ins` | ||
| * `aspnetcore.authentication.sign_outs` | ||
| * **Meter** : `Microsoft.AspNetCore.Authorization` | ||
| * `aspnetcore.authorization.attempts` | ||
| * **Meter** : `Microsoft.AspNetCore.Identity` | ||
| * `aspnetcore.identity.user.create.duration` | ||
| * `aspnetcore.identity.user.update.duration` | ||
| * `aspnetcore.identity.user.delete.duration` | ||
| * `aspnetcore.identity.user.check_password_attempts` | ||
| * `aspnetcore.identity.user.generated_tokens` | ||
| * `aspnetcore.identity.user.verify_token_attempts` | ||
| * `aspnetcore.identity.sign_in.authenticate.duration` | ||
| * `aspnetcore.identity.sign_in.check_password_attempts` | ||
| * `aspnetcore.identity.sign_in.sign_ins` | ||
| * `aspnetcore.identity.sign_in.sign_outs` | ||
| * `aspnetcore.identity.sign_in.two_factor_clients_remembered` | ||
| * `aspnetcore.identity.sign_in.two_factor_clients_forgotten` | ||
| * **Meter** : `Microsoft.AspNetCore.Components` | ||
| * `aspnetcore.components.navigate` | ||
| * `aspnetcore.components.handle_event.duration` | ||
| * **Meter** : `Microsoft.AspNetCore.Components.Lifecycle` | ||
| * `aspnetcore.components.update_parameters.duration` | ||
| * `aspnetcore.components.render_diff.duration` | ||
| * `aspnetcore.components.render_diff.size` | ||
| * **Meter** : `Microsoft.AspNetCore.Components.Server.Circuits` | ||
| * `aspnetcore.components.circuit.active` | ||
| * `aspnetcore.components.circuit.connected` | ||
| * `aspnetcore.components.circuit.duration` | ||
|
|
||
| For details about each individual metric check [ASP.NET Core | ||
| docs | ||
| page](https://learn.microsoft.com/dotnet/core/diagnostics/built-in-metrics-aspnetcore). | ||
|
|
||
| ## 1.12.0 | ||
|
|
||
| Released 2025-May-05 | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I prefer this shorter name, but asking as I had the thought on the other PR, should this instead be
EnableAspNetCoreBlazorSupportfor consistency with the other property names?