Skip to content

Commit 00dcfb7

Browse files
authored
Merge pull request #842 from DuendeSoftware/mb/otel
Add docs on .NET built-in metrics
2 parents 0d4d1f0 + f4fe083 commit 00dcfb7

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

  • src/content/docs/identityserver/diagnostics

src/content/docs/identityserver/diagnostics/otel.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,27 @@ will typically be lower than the number of logins.
333333
|-----|------------------------------------------------|
334334
| idp | The idp (ASP.NET scheme name) logging out from |
335335

336+
### .NET Authentication And Authorization Metrics
337+
338+
:::tip
339+
Added in .NET 10
340+
:::
341+
342+
Starting with .NET 10, metrics are available for certain authentication and authorization events in ASP.NET Core.
343+
You can get metrics for the following events:
344+
345+
* [Authentication](https://learn.microsoft.com/en-us/aspnet/core/log-mon/metrics/built-in?view=aspnetcore-10.0#microsoftaspnetcoreauthentication)
346+
* Authenticated request duration (`aspnetcore.authentication.authenticate.duration`)
347+
* Challenge count (`aspnetcore.authentication.challenges`)
348+
* Forbid count (`aspnetcore.authentication.forbids`)
349+
* Sign in count (`aspnetcore.authentication.sign_ins`)
350+
* Sign out count (`aspnetcore.authentication.sign_outs`)
351+
* [Authorization](https://learn.microsoft.com/en-us/aspnet/core/log-mon/metrics/built-in?view=aspnetcore-10.0#microsoftaspnetcoreauthorization)
352+
* Count of requests requiring authorization (`aspnetcore.authorization.attempts`)
353+
354+
Refer to the [ASP.NET Core documentation](https://learn.microsoft.com/en-us/aspnet/core/log-mon/metrics/built-in?view=aspnetcore-10.0)
355+
for more information about ASP.NET Core built-in metrics.
356+
336357
## Traces
337358

338359
:::tip
@@ -359,8 +380,7 @@ The following screenshot shows the ASP.NET Core OpenID Connect authentication ha
359380
### Tracing Sources
360381

361382
IdentityServer can emit very fine-grained traces which is useful for performance troubleshooting and general exploration
362-
of the
363-
control flow.
383+
of the control flow.
364384

365385
This might be too detailed in production.
366386

@@ -384,4 +404,4 @@ You can select which information you are interested in by selectively listening
384404

385405
* *`IdentityServerConstants.Tracing.Validation`*
386406

387-
More detailed tracing related to validation
407+
More detailed tracing related to validation

0 commit comments

Comments
 (0)