Skip to content

Commit a4eb59b

Browse files
committed
PR feedback
1 parent c6112b2 commit a4eb59b

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

docs/dotnet/dotnet-aspnetcore-metrics.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ Meter name: `Microsoft.AspNetCore.RateLimiting`; Added in: ASP.NET Core 8.0
375375

376376
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
377377
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
378-
| `aspnetcore.authentication.challenges` | Counter | `{request}` | The total number of times a scheme is challenged. [1] | ![Development](https://img.shields.io/badge/-development-blue) | |
378+
| `aspnetcore.authentication.challenges` | Counter | `{challenge}` | The total number of times a scheme is challenged. [1] | ![Development](https://img.shields.io/badge/-development-blue) | |
379379

380380
**[1]:** Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
381381

@@ -408,7 +408,7 @@ Meter name: `Microsoft.AspNetCore.RateLimiting`; Added in: ASP.NET Core 8.0
408408

409409
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
410410
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
411-
| `aspnetcore.authentication.forbids` | Counter | `{request}` | The total number of times an authenticated user attempts to access a resource they are not permitted to access. [1] | ![Development](https://img.shields.io/badge/-development-blue) | |
411+
| `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] | ![Development](https://img.shields.io/badge/-development-blue) | |
412412

413413
**[1]:** Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
414414

@@ -441,7 +441,7 @@ Meter name: `Microsoft.AspNetCore.RateLimiting`; Added in: ASP.NET Core 8.0
441441

442442
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
443443
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
444-
| `aspnetcore.authentication.sign_ins` | Counter | `{request}` | The total number of times a principal is signed in with a scheme. [1] | ![Development](https://img.shields.io/badge/-development-blue) | |
444+
| `aspnetcore.authentication.sign_ins` | Counter | `{sign_in}` | The total number of times a principal is signed in with a scheme. [1] | ![Development](https://img.shields.io/badge/-development-blue) | |
445445

446446
**[1]:** Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
447447

@@ -474,7 +474,7 @@ Meter name: `Microsoft.AspNetCore.RateLimiting`; Added in: ASP.NET Core 8.0
474474

475475
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
476476
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
477-
| `aspnetcore.authentication.sign_outs` | Counter | `{request}` | The total number of times a principal is signed out with a scheme. [1] | ![Development](https://img.shields.io/badge/-development-blue) | |
477+
| `aspnetcore.authentication.sign_outs` | Counter | `{sign_out}` | The total number of times a principal is signed out with a scheme. [1] | ![Development](https://img.shields.io/badge/-development-blue) | |
478478

479479
**[1]:** Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
480480

@@ -509,13 +509,13 @@ Meter name: `Microsoft.AspNetCore.RateLimiting`; Added in: ASP.NET Core 8.0
509509

510510
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
511511
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
512-
| `aspnetcore.authorization.attempts` | Counter | `{request}` | The total number of requests for which authorization was attempted. [1] | ![Development](https://img.shields.io/badge/-development-blue) | |
512+
| `aspnetcore.authorization.attempts` | Counter | `{attempt}` | The total number of authorization attempts. [1] | ![Development](https://img.shields.io/badge/-development-blue) | |
513513

514514
**[1]:** Meter name: `Microsoft.AspNetCore.Authorization`; Added in: ASP.NET Core 10.0
515515

516516
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
517517
|---|---|---|---|---|---|
518-
| [`user.is_authenticated`](/docs/registry/attributes/aspnetcore.md) | boolean | A value that indicates whether the user is authenticated. | `true` | `Required` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
518+
| [`aspnetcore.user.is_authenticated`](/docs/registry/attributes/aspnetcore.md) | boolean | A value that indicates whether the user is authenticated. | `true` | `Required` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
519519
| [`aspnetcore.authorization.policy`](/docs/registry/attributes/aspnetcore.md) | string | The name of the authorization policy. | `RequireAdminRole` | `Conditionally Required` if a policy is specified. | ![Development](https://img.shields.io/badge/-development-blue) |
520520
| [`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. | ![Development](https://img.shields.io/badge/-development-blue) |
521521
| [`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. | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |

docs/registry/attributes/aspnetcore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ASP.NET Core attributes
2020
| <a id="aspnetcore-request-is-unhandled" href="#aspnetcore-request-is-unhandled">`aspnetcore.request.is_unhandled`</a> | boolean | Flag indicating if request was handled by the application pipeline. | `true` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
2121
| <a id="aspnetcore-routing-is-fallback" href="#aspnetcore-routing-is-fallback">`aspnetcore.routing.is_fallback`</a> | boolean | A value that indicates whether the matched route is a fallback route. | `true` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
2222
| <a id="aspnetcore-routing-match-status" href="#aspnetcore-routing-match-status">`aspnetcore.routing.match_status`</a> | string | Match result - success or failure | `success`; `failure` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
23-
| <a id="user-is-authenticated" href="#user-is-authenticated">`user.is_authenticated`</a> | boolean | A value that indicates whether the user is authenticated. | `true` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
23+
| <a id="aspnetcore-user-is-authenticated" href="#aspnetcore-user-is-authenticated">`aspnetcore.user.is_authenticated`</a> | boolean | A value that indicates whether the user is authenticated. | `true` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
2424

2525
---
2626

model/aspnetcore/metrics.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ groups:
175175
stability: development
176176
brief: The total number of times a scheme is challenged.
177177
instrument: counter
178-
unit: "{request}"
178+
unit: "{challenge}"
179179
note: |
180180
Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
181181
extends: aspnetcore.common.authentication.metrics.attributes
@@ -189,7 +189,7 @@ groups:
189189
stability: development
190190
brief: The total number of times an authenticated user attempts to access a resource they are not permitted to access.
191191
instrument: counter
192-
unit: "{request}"
192+
unit: "{forbid}"
193193
note: |
194194
Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
195195
extends: aspnetcore.common.authentication.metrics.attributes
@@ -203,7 +203,7 @@ groups:
203203
stability: development
204204
brief: The total number of times a principal is signed in with a scheme.
205205
instrument: counter
206-
unit: "{request}"
206+
unit: "{sign_in}"
207207
note: |
208208
Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
209209
extends: aspnetcore.common.authentication.metrics.attributes
@@ -217,7 +217,7 @@ groups:
217217
stability: development
218218
brief: The total number of times a principal is signed out with a scheme.
219219
instrument: counter
220-
unit: "{request}"
220+
unit: "{sign_out}"
221221
note: |
222222
Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0
223223
extends: aspnetcore.common.authentication.metrics.attributes
@@ -229,13 +229,13 @@ groups:
229229
code_generation:
230230
metric_value_type: int
231231
stability: development
232-
brief: The total number of requests for which authorization was attempted.
232+
brief: The total number of authorization attempts.
233233
instrument: counter
234-
unit: "{request}"
234+
unit: "{attempt}"
235235
note: |
236236
Meter name: `Microsoft.AspNetCore.Authorization`; Added in: ASP.NET Core 10.0
237237
attributes:
238-
- ref: user.is_authenticated
238+
- ref: aspnetcore.user.is_authenticated
239239
requirement_level: required
240240
- ref: aspnetcore.authorization.policy
241241
requirement_level:

model/aspnetcore/registry.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ groups:
106106
stability: development
107107
brief: The identifier that names a particular authentication handler.
108108
examples: ["Cookies", "Bearer", "Identity.Application"]
109-
- id: user.is_authenticated
109+
- id: aspnetcore.user.is_authenticated
110110
type: boolean
111111
stability: stable
112112
brief: A value that indicates whether the user is authenticated.

0 commit comments

Comments
 (0)