Skip to content

Commit 6d49014

Browse files
committed
.NET 10 metrics /1
1 parent 0b76d2c commit 6d49014

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

aspnetcore/log-mon/metrics/built-in/includes/built-in10.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,10 @@ The `Microsoft.AspNetCore.Authorization` metrics report information about [Autho
413413

414414
| Attribute | Type | Description | Examples | Presence |
415415
|---|---|---|---|---|
416-
| `user.is_authenticated` | Boolean | Match result | `success`; `failure` | Always |
416+
| `user.is_authenticated` | Boolean | Whether the request came from an authenticated user. | `true`; `false` | Always |
417417
| `aspnetcore.authorization.result` | string | The authentication result. | `success` ; `failure` | Always |
418418
| `aspnetcore.authorization.policy` | string | The authorization policy. | `Basic` | Always |
419-
| `error.type` | string | The error message. | `An error occurred in the authorization handler` | Always |
419+
| `error.type` | string | The error message. | `An error occurred in the authorization handler` | Conditionally required if the request has ended with an error. |
420420

421421
.
422422

@@ -438,9 +438,9 @@ The `Microsoft.AspNetCore.Authentication` metrics report information about [Auth
438438

439439
| Attribute | Type | Description | Examples | Presence |
440440
|---|---|---|---|---|
441-
| `aspnetcore.authentication.result` | string | The authentication result. | `success` ; `failure` | Always |
442-
| `aspnetcore.authentication.scheme` | string | The authentication scheme. | `custom` | Always |
443-
| `error.type` | string | The error message. | `An error occurred in the authorization handler` | If an authentication error or exception occurred. |
441+
| `aspnetcore.authentication.result` | string | The authentication result. | `success`; `failure`; `none`; `_OTHER` | `Conditionally Required` if the request did not end with an error |
442+
| `aspnetcore.authentication.scheme` | string | The name of the authentication scheme. | `Bearer`; `Cookies` | `Conditionally Required` if the request did not end with an error |
443+
| `error.type` | string | The full name of the exception type. | `System.InvalidOperationException`; `Contoso.MyException` | `Conditionally Required` if the request has ended with an error |
444444

445445
.
446446

@@ -466,7 +466,7 @@ The `Microsoft.AspNetCore.Authentication` metrics report information about [Auth
466466
| Attribute | Type | Description | Examples | Presence |
467467
|---|---|---|---|---|
468468
| `aspnetcore.authentication.scheme` | string | The authentication scheme. | `custom` | Always |
469-
| `error.type` | string | The error message. | `An error occurred during sign out.` | If an authentication error or exception occurred. |
469+
| `error.type` | string | The error message. | `An error occurred during sign out.` | Conditionally required if the request has ended with an error. |
470470

471471
.
472472

@@ -479,7 +479,7 @@ The `Microsoft.AspNetCore.Authentication` metrics report information about [Auth
479479
| Attribute | Type | Description | Examples | Presence |
480480
|---|---|---|---|---|
481481
| `aspnetcore.authentication.scheme` | string | The authentication scheme. | `custom` | Always |
482-
| `error.type` | string | The error message. | `An error occurred during sign in` | If an authentication error or exception occurred. |
482+
| `error.type` | string | The error message. | `An error occurred during sign in` | Conditionally required if the request has ended with an error. |
483483

484484
.
485485

@@ -491,6 +491,6 @@ The `Microsoft.AspNetCore.Authentication` metrics report information about [Auth
491491
| Attribute | Type | Description | Examples | Presence |
492492
|---|---|---|---|---|
493493
| `aspnetcore.authentication.scheme` | string | The authentication scheme. | `custom` | Always |
494-
| `error.type` | string | The error message. | `An error occurred during sign out` | If an authentication error or exception occurred. |
494+
| `error.type` | string | The error message. | `An error occurred during sign out` | Conditionally required if the request has ended with an error. |
495495

496496
:::moniker-end

0 commit comments

Comments
 (0)