You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`aspnetcore.authentication.authenticate.duration`| Histogram |`s`| The authentication duration for a request. [1]|||
335
+
336
+
**[1]:** Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
|[`aspnetcore.authentication.result`](/docs/registry/attributes/aspnetcore.md)| string | The result of the authentication operation. |`success`; `failure`|`Required`||
341
+
|[`aspnetcore.authentication.scheme`](/docs/registry/attributes/aspnetcore.md)| string | The identifier that names a particular authentication handler. |`Cookies`; `Bearer`; `Identity.Application`|`Conditionally Required` if a scheme is specified during authentication. ||
342
+
|[`error.type`](/docs/registry/attributes/error.md)| string | The full name of exception type. |`System.OperationCanceledException`|`Conditionally Required` if and only if an error has occurred. ||
343
+
344
+
---
345
+
346
+
`aspnetcore.authentication.result` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|`none`| No authentication information returned. ||
352
+
|`success`| Authentication was successful. ||
353
+
354
+
---
355
+
356
+
`error.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
357
+
358
+
| Value | Description | Stability |
359
+
|---|---|---|
360
+
|`_OTHER`| A fallback error value to be used when the instrumentation doesn't define a custom value. ||
|`aspnetcore.authentication.challenges`| Counter |`{challenge}`| The total number of times a scheme is challenged. [1]|||
379
+
380
+
**[1]:** Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
|[`aspnetcore.authentication.scheme`](/docs/registry/attributes/aspnetcore.md)| string | The identifier that names a particular authentication handler. |`Cookies`; `Bearer`; `Identity.Application`|`Conditionally Required` if a scheme is specified during authentication. ||
385
+
|[`error.type`](/docs/registry/attributes/error.md)| string | The full name of exception type. |`System.OperationCanceledException`|`Conditionally Required` if and only if an error has occurred. ||
386
+
387
+
---
388
+
389
+
`error.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
390
+
391
+
| Value | Description | Stability |
392
+
|---|---|---|
393
+
|`_OTHER`| A fallback error value to be used when the instrumentation doesn't define a custom value. ||
|`aspnetcore.authentication.forbids`| Counter |`{forbid}`| The total number of times an authenticated user attempts to access a resource they are not permitted to access. [1]|||
412
+
413
+
**[1]:** Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
|[`aspnetcore.authentication.scheme`](/docs/registry/attributes/aspnetcore.md)| string | The identifier that names a particular authentication handler. |`Cookies`; `Bearer`; `Identity.Application`|`Conditionally Required` if a scheme is specified during authentication. ||
418
+
|[`error.type`](/docs/registry/attributes/error.md)| string | The full name of exception type. |`System.OperationCanceledException`|`Conditionally Required` if and only if an error has occurred. ||
419
+
420
+
---
421
+
422
+
`error.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
423
+
424
+
| Value | Description | Stability |
425
+
|---|---|---|
426
+
|`_OTHER`| A fallback error value to be used when the instrumentation doesn't define a custom value. ||
|`aspnetcore.authentication.sign_ins`| Counter |`{sign_in}`| The total number of times a principal is signed in with a scheme. [1]|||
445
+
446
+
**[1]:** Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
|[`aspnetcore.authentication.scheme`](/docs/registry/attributes/aspnetcore.md)| string | The identifier that names a particular authentication handler. |`Cookies`; `Bearer`; `Identity.Application`|`Conditionally Required` if a scheme is specified during authentication. ||
451
+
|[`error.type`](/docs/registry/attributes/error.md)| string | The full name of exception type. |`System.OperationCanceledException`|`Conditionally Required` if and only if an error has occurred. ||
452
+
453
+
---
454
+
455
+
`error.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
456
+
457
+
| Value | Description | Stability |
458
+
|---|---|---|
459
+
|`_OTHER`| A fallback error value to be used when the instrumentation doesn't define a custom value. ||
|`aspnetcore.authentication.sign_outs`| Counter |`{sign_out}`| The total number of times a principal is signed out with a scheme. [1]|||
478
+
479
+
**[1]:** Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
|[`aspnetcore.authentication.scheme`](/docs/registry/attributes/aspnetcore.md)| string | The identifier that names a particular authentication handler. |`Cookies`; `Bearer`; `Identity.Application`|`Conditionally Required` if a scheme is specified during authentication. ||
484
+
|[`error.type`](/docs/registry/attributes/error.md)| string | The full name of exception type. |`System.OperationCanceledException`|`Conditionally Required` if and only if an error has occurred. ||
485
+
486
+
---
487
+
488
+
`error.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
489
+
490
+
| Value | Description | Stability |
491
+
|---|---|---|
492
+
|`_OTHER`| A fallback error value to be used when the instrumentation doesn't define a custom value. ||
|`aspnetcore.authorization.attempts`| Counter |`{attempt}`| The total number of authorization attempts. [1]|||
513
+
514
+
**[1]:** Meter name: `Microsoft.AspNetCore.Authorization`; Added in: ASP.NET Core 10.0
|[`aspnetcore.user.is_authenticated`](/docs/registry/attributes/aspnetcore.md)| boolean | A value that indicates whether the user is authenticated. |`true`|`Required`||
519
+
|[`aspnetcore.authorization.policy`](/docs/registry/attributes/aspnetcore.md)| string | The name of the authorization policy. |`RequireAdminRole`|`Conditionally Required` if a policy is specified. ||
520
+
|[`aspnetcore.authorization.result`](/docs/registry/attributes/aspnetcore.md)| string | The result of calling the authorization service. |`success`; `failure`|`Conditionally Required` if no exception was thrown. ||
521
+
|[`error.type`](/docs/registry/attributes/error.md)| string | The full name of exception type. |`System.OperationCanceledException`|`Conditionally Required` if and only if an error has occurred. ||
522
+
523
+
---
524
+
525
+
`aspnetcore.authorization.result` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|`success`| Authorization was successful. ||
531
+
532
+
---
533
+
534
+
`error.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
535
+
536
+
| Value | Description | Stability |
537
+
|---|---|---|
538
+
|`_OTHER`| A fallback error value to be used when the instrumentation doesn't define a custom value. ||
0 commit comments