この記事は英語の原文を日本語に翻訳したものです。原文: https://opentelemetry.io/docs/specs/semconv/dotnet/dotnet-aspnetcore-metrics/
翻訳元: open-telemetry/semantic-conventions v1.44.0(コミット e10a930)
ASP.NET Coreメトリクスに関するセマンティック規約
ステータス: Stable
この記事では、ASP.NET Coreメトリクスに関するセマンティック規約を定義します。
サーバー
ルーティング
すべてのルーティングメトリクスは、Microsoft.AspNetCore.Routing Meterによって報告されます。
メトリクス: aspnetcore.routing.match_attempts
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.routing.match_attempts | Counter | {match_attempt} | エンドポイントとのマッチングが試行されたリクエスト数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Routing; 追加されたバージョン: ASP.NET Core 8.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.routing.match_status | Required | string | マッチング結果(成功または失敗)。 | success; failure | |
aspnetcore.routing.is_fallback | Conditionally Required if and only if a route was successfully matched. | boolean | マッチしたルートがフォールバックルートかどうかを示す値。 | true | |
http.route | Conditionally Required if and only if a route was successfully matched. | string | リクエストにマッチしたルートテンプレート。これは低カーディナリティでなければならず(MUST)、すべての静的パスセグメントを含み、動的パスセグメントはプレースホルダーで表現されなければなりません(MUST)。[1] | /users/:userID?; my-controller/my-action/{id?} |
[1] http.route: HTTPサーバーフレームワークがこれをサポートしていない場合、設定してはなりません(MUST NOT)。route属性は低カーディナリティであるべきであり、URIパスで代替することはできません。
利用可能であれば、アプリケーションのルートを含めるべきです(SHOULD)。
静的パスセグメントは、固定の低カーディナリティな値を持つルートテンプレートの一部です。これには、/users/のようなリテラル文字列や、{controller}や{action}のように有限の事前定義された値の集合に制約されたプレースホルダーが含まれます。
動的パスセグメントは、高いカーディナリティを持つ可能性があり、静的パスセグメントのように事前定義された一覧に制約されない値のためのプレースホルダーです。
計装は、対応するWebフレームワークが提供するルーティング情報を使用すべきです(SHOULD)。最も正確なルーティング情報の出典を選ぶべきであり(SHOULD)、カスタムのルート形式をサポートしてもかまいません(MAY)。計装は、使用する形式とルート文字列を取得するために使用するAPIを文書化すべきです(SHOULD)。
aspnetcore.routing.match_statusには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
failure | マッチングが失敗しました。 | |
success | マッチングが成功しました。 |
例外
例外メトリクスは、Microsoft.AspNetCore.Diagnostics Meterによって報告されます。
メトリクス: aspnetcore.diagnostics.exceptions
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.diagnostics.exceptions | Counter | {exception} | 例外処理ミドルウェアによって捕捉された例外数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Diagnostics; 追加されたバージョン: ASP.NET Core 8.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.diagnostics.exception.result | Required | string | ASP.NET Coreの例外ミドルウェアによる処理結果。 | handled; unhandled | |
error.type | Required | string | 例外型の完全な名前。 | System.OperationCanceledException; Contoso.MyException | |
aspnetcore.diagnostics.handler.type | Conditionally Required [1] | string | その例外を処理したIExceptionHandler実装の完全な型名。 | Contoso.MyHandler |
[1] aspnetcore.diagnostics.handler.type: その例外がこのハンドラーによって処理された場合に限ります。
aspnetcore.diagnostics.exception.resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
aborted | リクエストがアボートされたため、例外処理は実行されませんでした。 | |
handled | 例外は例外処理ミドルウェアによって処理されました。 | |
skipped | レスポンスが開始されていたため、例外処理はスキップされました。 | |
unhandled | 例外は例外処理ミドルウェアによって処理されませんでした。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
レート制限
すべてのレート制限メトリクスは、Microsoft.AspNetCore.RateLimiting Meterによって報告されます。
メトリクス: aspnetcore.rate_limiting.active_request_leases
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.rate_limiting.active_request_leases | UpDownCounter | {request} | レート制限リースを保持し、現在サーバー上でアクティブなリクエスト数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.RateLimiting; 追加されたバージョン: ASP.NET Core 8.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.rate_limiting.policy | Conditionally Required [1] | string | レート制限ポリシー名。 | fixed; sliding; token |
[1] aspnetcore.rate_limiting.policy: そのリクエストにマッチしたエンドポイントにレート制限ポリシーが設定されていた場合。
メトリクス: aspnetcore.rate_limiting.request_lease.duration
このメトリクスは、[ 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10 ] のExplicitBucketBoundaries advisoryパラメータを指定すべきです(SHOULD)。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.rate_limiting.request_lease.duration | Histogram | s | サーバー上でリクエストが保持するレート制限リースの持続時間。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.RateLimiting; 追加されたバージョン: ASP.NET Core 8.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.rate_limiting.policy | Conditionally Required [1] | string | レート制限ポリシー名。 | fixed; sliding; token |
[1] aspnetcore.rate_limiting.policy: そのリクエストにマッチしたエンドポイントにレート制限ポリシーが設定されていた場合。
メトリクス: aspnetcore.rate_limiting.queued_requests
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.rate_limiting.queued_requests | UpDownCounter | {request} | 現在キューに入っており、レート制限リースの取得を待っているリクエスト数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.RateLimiting; 追加されたバージョン: ASP.NET Core 8.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.rate_limiting.policy | Conditionally Required [1] | string | レート制限ポリシー名。 | fixed; sliding; token |
[1] aspnetcore.rate_limiting.policy: そのリクエストにマッチしたエンドポイントにレート制限ポリシーが設定されていた場合。
メトリクス: aspnetcore.rate_limiting.request.time_in_queue
このメトリクスは、[ 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10 ] のExplicitBucketBoundaries advisoryパラメータを指定すべきです(SHOULD)。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.rate_limiting.request.time_in_queue | Histogram | s | リクエストが、レート制限リースの取得を待ってキューに滞在した時間。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.RateLimiting; 追加されたバージョン: ASP.NET Core 8.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.rate_limiting.result | Required | string | レート制限の結果。リースが取得されたかどうか、または拒否理由を示します。 | acquired; request_canceled | |
aspnetcore.rate_limiting.policy | Conditionally Required [1] | string | レート制限ポリシー名。 | fixed; sliding; token |
[1] aspnetcore.rate_limiting.policy: そのリクエストにマッチしたエンドポイントにレート制限ポリシーが設定されていた場合。
aspnetcore.rate_limiting.resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
acquired | リースが取得されました。 | |
endpoint_limiter | リースリクエストがエンドポイントのリミッターによって拒否されました。 | |
global_limiter | リースリクエストがグローバルリミッターによって拒否されました。 | |
request_canceled | リースリクエストがキャンセルされました。 |
メトリクス: aspnetcore.rate_limiting.requests
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.rate_limiting.requests | Counter | {request} | レート制限リースの取得を試みたリクエスト数。[1] |
[1]: リクエストには、次のような場合が考えられます。
- グローバルまたはエンドポイントのレート制限ポリシーによって拒否された。
- リースを待っている間にキャンセルされた。
Meterの名前: Microsoft.AspNetCore.RateLimiting; 追加されたバージョン: ASP.NET Core 8.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.rate_limiting.result | Required | string | レート制限の結果。リースが取得されたかどうか、または拒否理由を示します。 | acquired; request_canceled | |
aspnetcore.rate_limiting.policy | Conditionally Required [1] | string | レート制限ポリシー名。 | fixed; sliding; token |
[1] aspnetcore.rate_limiting.policy: そのリクエストにマッチしたエンドポイントにレート制限ポリシーが設定されていた場合。
aspnetcore.rate_limiting.resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
acquired | リースが取得されました。 | |
endpoint_limiter | リースリクエストがエンドポイントのリミッターによって拒否されました。 | |
global_limiter | リースリクエストがグローバルリミッターによって拒否されました。 | |
request_canceled | リースリクエストがキャンセルされました。 |
メモリプール
すべてのメモリプールメトリクスは、Microsoft.AspNetCore.MemoryPool Meterによって報告されます。
メトリクス: aspnetcore.memory_pool.pooled
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.memory_pool.pooled | UpDownCounter | By | 現在プールされ、再利用可能なバイト数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.MemoryPool; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.memory_pool.owner | Conditionally Required [1] | string | メモリプールインスタンスを使用しているライブラリまたはサブシステムの名前。 | kestrel; iis |
[1] aspnetcore.memory_pool.owner: メモリプールの作成時にownerが指定されている場合。
メトリクス: aspnetcore.memory_pool.evicted
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.memory_pool.evicted | Counter | By | メモリプールから追い出された(evicted)バイト数の合計。追い出しは、アイドル状態のプールされたメモリが回収される際に発生します。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.MemoryPool; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.memory_pool.owner | Conditionally Required [1] | string | メモリプールインスタンスを使用しているライブラリまたはサブシステムの名前。 | kestrel; iis |
[1] aspnetcore.memory_pool.owner: メモリプールの作成時にownerが指定されている場合。
メトリクス: aspnetcore.memory_pool.allocated
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.memory_pool.allocated | Counter | By | メモリプールによって割り当てられたバイト数の合計。割り当ては、メモリのレンタルリクエストが利用可能なプールされたメモリを超えた場合に発生します。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.MemoryPool; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.memory_pool.owner | Conditionally Required [1] | string | メモリプールインスタンスを使用しているライブラリまたはサブシステムの名前。 | kestrel; iis |
[1] aspnetcore.memory_pool.owner: メモリプールの作成時にownerが指定されている場合。
メトリクス: aspnetcore.memory_pool.rented
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.memory_pool.rented | Counter | By | メモリプールからレンタルされたバイト数の合計。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.MemoryPool; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.memory_pool.owner | Conditionally Required [1] | string | メモリプールインスタンスを使用しているライブラリまたはサブシステムの名前。 | kestrel; iis |
[1] aspnetcore.memory_pool.owner: メモリプールの作成時にownerが指定されている場合。
認証
すべての認証メトリクスは、Microsoft.AspNetCore.Authentication Meterによって報告されます。
メトリクス: aspnetcore.authentication.authenticate.duration
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.authentication.authenticate.duration | Histogram | s | リクエストの認証にかかった時間。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Authentication; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.authentication.result | Required | string | 認証操作の結果。 | success; failure | |
aspnetcore.authentication.scheme | Conditionally Required if a scheme is specified during authentication. | string | 特定の認証ハンドラーに名前を付ける識別子。 | Cookies; Bearer; Identity.Application | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
aspnetcore.authentication.resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
failure | 認証が失敗しました。 | |
none | 認証情報が返されませんでした。 | |
success | 認証が成功しました。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.authentication.challenges
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.authentication.challenges | Counter | {challenge} | スキームがチャレンジされた回数の合計。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Authentication; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.authentication.scheme | Conditionally Required if a scheme is specified during authentication. | string | 特定の認証ハンドラーに名前を付ける識別子。 | Cookies; Bearer; Identity.Application | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.authentication.forbids
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.authentication.forbids | Counter | {forbid} | 認証済みユーザーが、アクセスを許可されていないリソースへのアクセスを試みた回数の合計。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Authentication; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.authentication.scheme | Conditionally Required if a scheme is specified during authentication. | string | 特定の認証ハンドラーに名前を付ける識別子。 | Cookies; Bearer; Identity.Application | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.authentication.sign_ins
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.authentication.sign_ins | Counter | {sign_in} | プリンシパルが、あるスキームでサインインした回数の合計。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Authentication; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.authentication.scheme | Conditionally Required if a scheme is specified during authentication. | string | 特定の認証ハンドラーに名前を付ける識別子。 | Cookies; Bearer; Identity.Application | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.authentication.sign_outs
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.authentication.sign_outs | Counter | {sign_out} | プリンシパルが、あるスキームでサインアウトした回数の合計。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Authentication; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.authentication.scheme | Conditionally Required if a scheme is specified during authentication. | string | 特定の認証ハンドラーに名前を付ける識別子。 | Cookies; Bearer; Identity.Application | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
認可
すべての認可メトリクスは、Microsoft.AspNetCore.Authorization Meterによって報告されます。
メトリクス: aspnetcore.authorization.attempts
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.authorization.attempts | Counter | {attempt} | 認可試行の合計数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Authorization; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.user.is_authenticated | Required | boolean | ユーザーが認証済みかどうかを示す値。 | true | |
aspnetcore.authorization.policy | Conditionally Required if a policy is specified. | string | 認可ポリシーの名前。 | RequireAdminRole | |
aspnetcore.authorization.result | Conditionally Required if no exception was thrown. | string | 認可サービス呼び出しの結果。 | success; failure | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
aspnetcore.authorization.resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
failure | 認可が失敗しました。 | |
success | 認可が成功しました。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
Identity
ASP.NET Core Identityのすべてのメトリクスは、Microsoft.AspNetCore.Identity Meterによって報告されます。
メトリクス: aspnetcore.identity.user.create.duration
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.user.create.duration | Histogram | s | ユーザー作成操作の実行時間。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
aspnetcore.identity.error_code | Conditionally Required if an error was set on a failed identity result. | string | 失敗したIdentity操作のエラーコード。 | DefaultError; PasswordMismatch | |
aspnetcore.identity.result | Conditionally Required if no exception was thrown. | string | Identity操作の結果。 | success; failure | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前、またはIdentityエラーコード。 | System.OperationCanceledException; PasswordMismatch |
aspnetcore.identity.resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
failure | Identity操作が失敗しました。 | |
success | Identity操作が成功しました。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.user.update.duration
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.user.update.duration | Histogram | s | ユーザー更新操作の実行時間。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.identity.user.update_type | Required | string | ユーザー更新の種類。 | update; user_name; reset_password | |
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
aspnetcore.identity.error_code | Conditionally Required if an error was set on a failed identity result. | string | 失敗したIdentity操作のエラーコード。 | DefaultError; PasswordMismatch | |
aspnetcore.identity.result | Conditionally Required if no exception was thrown. | string | Identity操作の結果。 | success; failure | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前、またはIdentityエラーコード。 | System.OperationCanceledException; PasswordMismatch |
aspnetcore.identity.resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
failure | Identity操作が失敗しました。 | |
success | Identity操作が成功しました。 |
aspnetcore.identity.user.update_typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が事前に知らない更新の種類。 | |
access_failed | Identityユーザーのアクセス失敗が記録されました。 | |
add_claims | Identityユーザーのクレームが追加されました。 | |
add_login | Identityユーザーのログインが追加されました。 | |
add_password | Identityユーザーのパスワードが追加されました。 | |
add_to_roles | Identityユーザーがロールに追加されました。 | |
change_email | Identityユーザーのメールアドレスが変更されました。 | |
change_password | Identityユーザーのパスワードが変更されました。 | |
change_phone_number | Identityユーザーの電話番号が変更されました。 | |
confirm_email | Identityユーザーのメールアドレスが確認されました。 | |
generate_new_two_factor_recovery_codes | Identityユーザーの新しい二要素リカバリーコードが生成されました。 | |
password_rehash | Identityユーザーのパスワードが再ハッシュされました。 | |
redeem_two_factor_recovery_code | Identityユーザーの二要素リカバリーコードが使用されました。 | |
remove_authentication_token | Identityユーザーの認証トークンが削除されました。 | |
remove_claims | Identityユーザーのクレームが削除されました。 | |
remove_from_roles | Identityユーザーがロールから削除されました。 | |
remove_login | Identityユーザーのログインが削除されました。 | |
remove_passkey | Identityユーザーのパスキーが削除されました。 | |
remove_password | Identityユーザーのパスワードが削除されました。 | |
replace_claim | Identityユーザーのクレームが置き換えられました。 | |
reset_access_failed_count | Identityユーザーのアクセス失敗回数がリセットされました。 | |
reset_authenticator_key | Identityユーザーの認証キーがリセットされました。 | |
reset_password | Identityユーザーのパスワードがリセットされました。 | |
security_stamp | Identityユーザーのセキュリティスタンプが更新されました。 | |
set_authentication_token | Identityユーザーの認証トークンが設定されました。 | |
set_email | Identityユーザーのメールアドレスが設定されました。 | |
set_lockout_enabled | Identityユーザーのロックアウトが有効・無効化されました。 | |
set_lockout_end_date | Identityユーザーのロックアウト終了日が設定されました。 | |
set_passkey | Identityユーザーのパスキーが設定されました。 | |
set_phone_number | Identityユーザーの電話番号が設定されました。 | |
set_two_factor_enabled | Identityユーザーの二要素認証が有効・無効化されました。 | |
update | Identityユーザーが更新されました。 | |
user_name | Identityのユーザー名が更新されました。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.user.delete.duration
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.user.delete.duration | Histogram | s | ユーザー削除操作の実行時間。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
aspnetcore.identity.error_code | Conditionally Required if an error was set on a failed identity result. | string | 失敗したIdentity操作のエラーコード。 | DefaultError; PasswordMismatch | |
aspnetcore.identity.result | Conditionally Required if no exception was thrown. | string | Identity操作の結果。 | success; failure | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前、またはIdentityエラーコード。 | System.OperationCanceledException; PasswordMismatch |
aspnetcore.identity.resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
failure | Identity操作が失敗しました。 | |
success | Identity操作が成功しました。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.user.check_password_attempts
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.user.check_password_attempts | Counter | {attempt} | パスワードチェック試行数。パスワードが有効かどうかのみを確認し、ユーザーアカウントがログイン可能な状態かどうかは確認しません。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
aspnetcore.identity.password_check_result | Conditionally Required if no exception was thrown. | string | パスワードチェックの結果。 | success; failure | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
aspnetcore.identity.password_check_resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
failure | パスワードチェックが失敗しました。 | |
password_missing | ユーザーにパスワードが設定されていなかったため、パスワードチェックを続行できませんでした。 | |
success | パスワードチェックが成功しました。 | |
success_rehash_needed | パスワードチェックは成功しましたが、パスワードが非推奨のアルゴリズムでエンコードされていたため、再ハッシュして更新すべきです。 | |
user_missing | ユーザーが存在しなかったため、パスワードチェックを続行できませんでした。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.user.generated_tokens
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.user.generated_tokens | Counter | {count} | トークン生成の合計数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.identity.token_purpose | Required | string | トークンの用途。 | success; failure | |
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
aspnetcore.identity.token_purposeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が事前に知らないトークンの用途。 | |
change_email | メールアドレスの変更のためのトークン。 | |
change_phone_number | 電話番号の変更のためのトークン。 | |
email_confirmation | メールアドレスの確認のためのトークン。 | |
reset_password | パスワードのリセットのためのトークン。 | |
two_factor | 二要素設定の変更のためのトークン。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.user.verify_token_attempts
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.user.verify_token_attempts | Counter | {attempt} | トークン検証試行の合計数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.identity.token_purpose | Required | string | トークンの用途。 | success; failure | |
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
aspnetcore.identity.token_verified | Conditionally Required if no exception was thrown. | string | トークン検証の結果。 | success; failure | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
aspnetcore.identity.token_purposeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が事前に知らないトークンの用途。 | |
change_email | メールアドレスの変更のためのトークン。 | |
change_phone_number | 電話番号の変更のためのトークン。 | |
email_confirmation | メールアドレスの確認のためのトークン。 | |
reset_password | パスワードのリセットのためのトークン。 | |
two_factor | 二要素設定の変更のためのトークン。 |
aspnetcore.identity.token_verifiedには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
failure | トークン検証が失敗しました。 | |
success | トークン検証が成功しました。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.sign_in.authenticate.duration
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.sign_in.authenticate.duration | Histogram | s | 認証試行の実行時間。この認証メトリクスは、PasswordSignInAsyncやTwoFactorSignInAsyncなどのサインインメソッドによって記録されます。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.authentication.scheme | Required | string | 特定の認証ハンドラーに名前を付ける識別子。 | Cookies; Bearer; Identity.Application | |
aspnetcore.identity.sign_in.type | Required | string | 認証の種類。 | password; two_factor | |
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
aspnetcore.identity.sign_in.result | Conditionally Required if no exception was thrown. | string | サインイン結果が成功だったか失敗だったか。 | password; two_factor | |
aspnetcore.sign_in.is_persistent | Conditionally Required if no exception was thrown. | boolean | サインインが永続的かどうかを示すフラグ。 | ||
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
aspnetcore.identity.sign_in.resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
failure | サインインが失敗しました。 | |
locked_out | ユーザーがロックアウトされています。 | |
not_allowed | ユーザーはサインインを許可されていません。 | |
requires_two_factor | ユーザーはサインインに二要素認証を必要としています。 | |
success | サインインが成功しました。 |
aspnetcore.identity.sign_in.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
external | 事前に登録済みのサードパーティログインでサインイン。 | |
passkey | パスキーでサインイン。 | |
password | パスワードでサインイン。 | |
two_factor | 二要素プロバイダーでサインイン。 | |
two_factor_authenticator | 二要素認証アプリでサインイン。 | |
two_factor_recovery_code | 二要素リカバリーコードでサインイン。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.sign_in.check_password_attempts
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.sign_in.check_password_attempts | Counter | {attempt} | パスワードチェック試行の合計数。UserManager.CheckPasswordAsyncメソッドを使い、アカウントがログイン可能な状態かどうかと、パスワードが有効かどうかを確認します。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
aspnetcore.identity.sign_in.result | Conditionally Required if no exception was thrown. | string | サインイン結果が成功だったか失敗だったか。 | password; two_factor | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
aspnetcore.identity.sign_in.resultには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
failure | サインインが失敗しました。 | |
locked_out | ユーザーがロックアウトされています。 | |
not_allowed | ユーザーはサインインを許可されていません。 | |
requires_two_factor | ユーザーはサインインに二要素認証を必要としています。 | |
success | サインインが成功しました。 |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.sign_in.sign_ins
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.sign_in.sign_ins | Counter | {sign_in} | ユーザープリンシパルをサインインさせる呼び出しの合計数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.authentication.scheme | Required | string | 特定の認証ハンドラーに名前を付ける識別子。 | Cookies; Bearer; Identity.Application | |
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
aspnetcore.sign_in.is_persistent | Conditionally Required if no exception was thrown. | boolean | サインインが永続的かどうかを示すフラグ。 | ||
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.sign_in.sign_outs
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.sign_in.sign_outs | Counter | {sign_out} | ユーザープリンシパルをサインアウトさせる呼び出しの合計数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.authentication.scheme | Required | string | 特定の認証ハンドラーに名前を付ける識別子。 | Cookies; Bearer; Identity.Application | |
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.sign_in.two_factor_clients_remembered
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.sign_in.two_factor_clients_remembered | Counter | {client} | 記憶された二要素クライアントの合計数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.authentication.scheme | Required | string | 特定の認証ハンドラーに名前を付ける識別子。 | Cookies; Bearer; Identity.Application | |
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |
メトリクス: aspnetcore.identity.sign_in.two_factor_clients_forgotten
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
aspnetcore.identity.sign_in.two_factor_clients_forgotten | Counter | {client} | 忘却された二要素クライアントの合計数。[1] |
[1]: Meterの名前: Microsoft.AspNetCore.Identity; 追加されたバージョン: ASP.NET Core 10.0
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
aspnetcore.authentication.scheme | Required | string | 特定の認証ハンドラーに名前を付ける識別子。 | Cookies; Bearer; Identity.Application | |
aspnetcore.identity.user_type | Required | string | Identityユーザー型の完全な名前。 | Contoso.ContosoUser | |
error.type | Conditionally Required if and only if an error has occurred. | string | 例外型の完全な名前。 | System.OperationCanceledException |
error.typeには、次のよく知られた値の一覧があります。これらのいずれかが該当する場合は、対応する値を使用しなければなりません(MUST)。そうでない場合は、独自の値を使用してもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
_OTHER | 計装が独自の値を定義していない場合に使用するフォールバック用のエラー値。 |