次の方法で共有


ASP.NET Core 組み込みメトリック

この記事では、 System.Diagnostics.Metrics API を使用して生成された ASP.NET Core の組み込みメトリックについて説明します。 For a listing of metrics based on the older EventCounters API, see Available counters.

ASP.NET Core メトリックを使用して収集、レポート、強化、テストを行う方法については、コア メトリック ASP.NET 参照してください。

Microsoft.AspNetCore.Components

Microsoft.AspNetCore.Components メトリックは、Razor コンポーネントルートの変更とブラウザー イベントに関する情報を報告します。

メトリック: aspnetcore.components.navigation

Name Instrument Type Unit (UCUM) Description
aspnetcore.components.navigation Counter {route} アプリ内のルート変更の合計数を追跡します。
Attribute タイプ Description Examples Presence
aspnetcore.components.type 文字列 コンポーネントが移動しました。 TestComponent Always
aspnetcore.components.route 文字列 コンポーネントのルート。 /test-route Always
error.type 文字列 例外の種類の完全な名前。 System.InvalidOperationException;Contoso.MyException 例外がスローされた場合。

使用法: ユーザーがアクセスした Blazor ページの数はいくつですか?

メトリック: aspnetcore.components.event_handler

Name Instrument Type Unit (UCUM) Description
aspnetcore.components.event_handler Histogram s 子コンポーネント イベント処理の期間を除き、コンポーネントのビジネス ロジックを含む、ブラウザー イベントの処理期間を測定します。
Attribute タイプ Description Examples Presence
aspnetcore.components.type 文字列 イベントを処理するコンポーネントの種類。 TestComponent Always
aspnetcore.components.method 文字列 イベントを処理する C# メソッド。 OnClick Always
aspnetcore.components.attribute.name 文字列 イベントを処理するコンポーネント属性名。 onclick Always
error.type 文字列 例外の種類の完全な名前。 System.InvalidOperationException;Contoso.MyException 例外がスローされた場合。

Usage:

  • どのコンポーネントのクリック イベント ハンドラーが遅いですか?
  • どのボタンが頻繁に選択されますか?

Microsoft.AspNetCore.Components.Lifecycle

Microsoft.AspNetCore.Components.Lifecycle メトリックは、Razor コンポーネントのライフサイクル イベントに関する情報を報告します。

メトリック: aspnetcore.components.update_parameters

Name Instrument Type Unit (UCUM) Description
aspnetcore.components.update_parameters Histogram s ビジネス ロジックを含むコンポーネント パラメーターの処理期間を測定します。
Attribute タイプ Description Examples Presence
aspnetcore.components.type 文字列 イベントを処理するコンポーネントの種類。 TestComponent Always
error.type 文字列 例外の種類の完全な名前。 System.InvalidOperationException;Contoso.MyException 例外がスローされた場合。

Usage:

  • 更新に時間がかかるコンポーネントはどれですか?
  • どのコンポーネントが頻繁に更新されますか?

メトリック: aspnetcore.components.render_diff

Name Instrument Type Unit (UCUM) Description
aspnetcore.components.render_diff Histogram s バッチのレンダリング期間を追跡します。
Attribute タイプ Description Examples Presence
aspnetcore.components.diff.length int バッチのレンダリングの差分/サイズの長さ (バケット化)。 50 Always
error.type 文字列 例外の種類の完全な名前。 System.InvalidOperationException;Contoso.MyException 例外がスローされた場合。

Usage:

  • サーバーのレンダリングが遅いですか?
  • 大きすぎる差分をレンダリングしますか? (ネットワーク帯域幅、DOM 更新)

Microsoft.AspNetCore.Components.Server.Circuits

Microsoft.AspNetCore.Components.Server.Circuitsメトリックは、BlazorとBlazor Serverのサーバー側のBlazor Web App回線に関する情報を報告します。

メトリック: aspnetcore.components.circuit.active

Name Instrument Type Unit (UCUM) Description
aspnetcore.components.circuit.active UpDownCounter {circuit} 現在メモリ内にあるアクティブな回線の数を示します。

使用法: セッション状態が保持するメモリの量

メトリック: aspnetcore.components.circuit.connected

Name Instrument Type Unit (UCUM) Description
aspnetcore.components.circuit.connected UpDownCounter {circuit} クライアントに接続されている回線の数を追跡します。

使用法: 開いている SignalR 接続の数はいくつですか?

メトリック: aspnetcore.components.circuit.duration

Name Instrument Type Unit (UCUM) Description
aspnetcore.components.circuit.duration Histogram s 回路の有効期間を測定し、合計回路数を提供します。

Usage:

  • 処理されたセッションの数
  • ユーザーがセッション/タブを開いたままにしておく期間はどのくらいですか?

Microsoft.AspNetCore.Hosting

Microsoft.AspNetCore.Hosting メトリックは、ASP.NET Core によって受信された HTTP 要求に関する大まかな情報を報告します。

メトリック: http.server.request.duration

Name Instrument Type Unit (UCUM) Description
http.server.request.duration Histogram s 受信 HTTP 要求の期間を測定します。
Attribute タイプ Description Examples Presence
http.route 文字列 一致したルート。 {controller}/{action}/
{id?}
使用可能な場合。
error.type 文字列 操作が終了したエラーのクラスについて説明します。 timeout;name_resolution_error;500 要求がエラーで終了した場合。
http.request.method 文字列 HTTP 要求メソッド。 GET;POST;HEAD Always
http.response.status_code int HTTP 応答状態コードを します。 200 送信された場合。
network.protocol.version 文字列 network.protocol.nameで指定されたプロトコルのバージョン。 3.1.1 Always
url.scheme 文字列 The URI scheme component identifying the used protocol. http;https Always
aspnetcore.request.is_unhandled ブール値 True の 場合、要求がアプリケーション パイプラインによって処理されませんでした。 true 要求が処理されなかった場合。

ASP.NET Core のホスティング 層で測定された受信 HTTP 要求の処理に使用される時間。 基になる Web ホストに次のものが含まれると、時間の測定が開始されます。

  • 受信ネットワーク ストリームの HTTP 要求ヘッダーを十分に解析して、新しい要求を識別しました。
  • HttpContextなどのコンテキスト データ構造を初期化しました。

時間は次の場合に終了します。

  • ASP.NET Core ハンドラー パイプラインの実行が完了しました。
  • すべての応答データが送信されました。
  • 要求のコンテキスト データ構造が破棄されています。

OpenTelemetry を使用する場合、このメトリックの既定のバケットは [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] に設定されます。

メトリック: http.server.active_requests

Name Instrument Type Unit (UCUM) Description
http.server.active_requests UpDownCounter {request} 現在処理中の同時 HTTP 要求の数を測定します。
Attribute タイプ Description Examples Presence
http.request.method 文字列 HTTP 要求メソッド。 [1] GET;POST;HEAD Always
url.scheme 文字列 The URI scheme component identifying the used protocol. http;https Always

Microsoft.AspNetCore.Routing

Microsoft.AspNetCore.Routing メトリックは、ASP.NET Core エンドポイントへの HTTP 要求のルーティングに関する情報を報告します。

メトリック: aspnetcore.routing.match_attempts

Name Instrument Type Unit (UCUM) Description
aspnetcore.routing.match_attempts Counter {match_attempt} エンドポイントに一致しようとした要求の数。
Attribute タイプ Description Examples Presence
aspnetcore.routing.match_status 文字列 Match result success;failure Always
aspnetcore.routing.is_fallback_route boolean 一致したルートがフォールバック ルートであるかどうかを示す値。 True ルートが正常に一致した場合。
http.route 文字列 一致したルート {controller}/{action}/
{id?}
ルートが正常に一致した場合。

Microsoft.AspNetCore.Diagnostics

Microsoft.AspNetCore.Diagnostics メトリックは、ASP.NET Core エラー処理ミドルウェアからの診断情報を報告します。

メトリック: aspnetcore.diagnostics.exceptions

Name Instrument Type Unit (UCUM) Description
aspnetcore.diagnostics.exceptions Counter {exception} 例外処理ミドルウェアによってキャッチされた例外の数。
Attribute タイプ Description Examples Presence
aspnetcore.diagnostics.exception.result 文字列 ASP.NET Core 例外ミドルウェア処理の結果 handled;unhandled Always
aspnetcore.diagnostics.handler.type 文字列 例外を処理した IExceptionHandler 実装の完全な型名。 Contoso.MyHandler 例外がこのハンドラーによって処理された場合。
exception.type 文字列 例外の種類の完全な名前。 System.OperationCanceledException;Contoso.MyException Always

Microsoft.AspNetCore.RateLimiting

Microsoft.AspNetCore.RateLimiting メトリックは、コア レート制限ミドルウェアからのレート制限情報 ASP.NET 報告します。

メトリック: aspnetcore.rate_limiting.active_request_leases

Name Instrument Type Unit (UCUM) Description
aspnetcore.rate_limiting.active_request_leases UpDownCounter {request} レート制限リースを保持しているサーバーで現在アクティブになっている要求の数。
Attribute タイプ Description Examples Presence
aspnetcore.rate_limiting.policy 文字列 レート制限ポリシー名。 fixed;sliding;token 要求に一致するエンドポイントにレート制限ポリシーがある場合。

メトリック: aspnetcore.rate_limiting.request_lease.duration

Name Instrument Type Unit (UCUM) Description
aspnetcore.rate_limiting.request_lease.duration Histogram s サーバー上の要求によって保持されるレート制限リースの期間。
Attribute タイプ Description Examples Presence
aspnetcore.rate_limiting.policy 文字列 レート制限ポリシー名。 fixed;sliding;token 要求に一致するエンドポイントにレート制限ポリシーがある場合。

メトリック: aspnetcore.rate_limiting.queued_requests

Name Instrument Type Unit (UCUM) Description
aspnetcore.rate_limiting.queued_requests UpDownCounter {request} レート制限リースの取得を待機している現在キューに登録されている要求の数。
Attribute タイプ Description Examples Presence
aspnetcore.rate_limiting.policy 文字列 レート制限ポリシー名。 fixed;sliding;token 要求に一致するエンドポイントにレート制限ポリシーがある場合。

メトリック: aspnetcore.rate_limiting.request.time_in_queue

Name Instrument Type Unit (UCUM) Description
aspnetcore.rate_limiting.request.time_in_queue Histogram s レート制限リースの取得を待機しているキューで要求が費やされた時間。
Attribute タイプ Description Examples Presence
aspnetcore.rate_limiting.policy 文字列 レート制限ポリシー名。 fixed;sliding;token 要求に一致するエンドポイントにレート制限ポリシーがある場合。
aspnetcore.rate_limiting.result 文字列 レート制限の結果は、リースが取得されたか、拒否理由が含まれているかを示します。 acquired;request_canceled Always

メトリック: aspnetcore.rate_limiting.requests

Name Instrument Type Unit (UCUM) Description
aspnetcore.rate_limiting.requests Counter {request} レート制限リースを取得しようとした要求の数。
Attribute タイプ Description Examples Presence
aspnetcore.rate_limiting.policy 文字列 レート制限ポリシー名。 fixed;sliding;token 要求に一致するエンドポイントにレート制限ポリシーがある場合。
aspnetcore.rate_limiting.result 文字列 レート制限の結果は、リースが取得されたか、拒否理由が含まれているかを示します。 acquired;request_canceled Always

Microsoft.AspNetCore.HeaderParsing

Microsoft.AspNetCore.HeaderParsing メトリックは、ASP.NET Core ヘッダーの解析に関する情報を報告します。

メトリック: aspnetcore.header_parsing.parse_errors

Name Instrument Type Unit (UCUM) Description
aspnetcore.header_parsing.parse_errors Counter {parse_error} HTTP 要求ヘッダーの解析時に発生したエラーの数。
Attribute タイプ Description Examples Presence
aspnetcore.header_parsing.header.name 文字列 ヘッダー名。 Content-Type Always
error.type 文字列 エラー メッセージ。 Unable to parse media type value. Always

メトリック: aspnetcore.header_parsing.cache_accesses

メトリックは、キャッシュをサポートする HTTP 要求ヘッダー パーサーに対してのみ出力されます。

Name Instrument Type Unit (UCUM) Description
aspnetcore.header_parsing.cache_accesses Counter {cache_access} 解析されたヘッダー値を格納しているキャッシュにアクセスされた回数。
Attribute タイプ Description Examples Presence
aspnetcore.header_parsing.header.name 文字列 ヘッダー名。 Content-Type Always
aspnetcore.header_parsing.cache_access.type 文字列 ヘッダーの値がキャッシュ内で見つかったかどうかを示す値。 Hit;Miss Always

Microsoft.AspNetCore.Server.Kestrel

Microsoft.AspNetCore.Server.Kestrel メトリックは、ASP.NET Core Kestrel Web サーバーからの HTTP 接続情報を報告します。

メトリック: kestrel.active_connections

Name Instrument Type Unit (UCUM) Description
kestrel.active_connections UpDownCounter {connection} サーバーで現在アクティブになっている接続の数。
Attribute タイプ Description Examples Presence
network.transport 文字列 OSIトランスポート層 またはプロセス間通信方法 tcp;unix Always
network.type 文字列 OSI ネットワーク 層 または非 OSI と同等です。 ipv4;ipv6 トランスポートが tcp または udp場合。
server.address 文字列 逆引き DNS 参照なしで使用可能な場合は、サーバー アドレス ドメイン名。それ以外の場合は、IP アドレスまたは Unix ドメイン ソケット名。 example.com Always
server.port int サーバー ポート番号 80;8080;443 トランスポートが tcp または udp場合。

メトリック: kestrel.connection.duration

Name Instrument Type Unit (UCUM) Description
kestrel.connection.duration Histogram s サーバー上の接続の期間。
Attribute タイプ Description Examples Presence
error.type 文字列 接続が終了したエラーの種類、または接続パイプライン中にスローされた未処理の例外の種類について説明します。 既知の接続エラーは、Kestrel Web サーバー メトリックのセマンティック規則で確認できます。 connection_reset;invalid_request_headers;System.OperationCanceledException 接続が既知のエラーで終了したか、例外がスローされた場合。
network.protocol.name 文字列 OSI アプリケーション 層 または OSI 以外の同等の層。 http;web_sockets Always
network.protocol.version 文字列 network.protocol.nameで指定されたプロトコルのバージョン。 1.1;2 Always
network.transport 文字列 OSIトランスポート層 またはプロセス間通信方法 tcp;unix Always
network.type 文字列 OSI ネットワーク 層 または非 OSI と同等です。 ipv4;ipv6 トランスポートが tcp または udp場合。
server.address 文字列 逆引き DNS 参照なしで使用可能な場合は、サーバー アドレス ドメイン名。それ以外の場合は、IP アドレスまたは Unix ドメイン ソケット名。 example.com Always
server.port int サーバー ポート番号 80;8080;443 トランスポートが tcp または udp場合。
tls.protocol.version 文字列 TLS プロトコルのバージョン。 1.2;1.3 接続が TLS で保護されている場合。

このメトリックは接続期間を追跡しており、理想的には複数の要求に http 接続が使用されるため、バケットは要求期間に使用されるよりも長くする必要があります。 たとえば、[0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300] を使用すると、5 分の上位バケットが提供されます。

接続が既知のエラーで終了すると、 error.type 属性値は既知のエラーの種類に設定されます。 既知の接続エラーは、Kestrel Web サーバー メトリックのセマンティック規則で確認できます。

メトリック: kestrel.rejected_connections

Name Instrument Type Unit (UCUM) Description
kestrel.rejected_connections Counter {connection} サーバーによって拒否された接続の数。
Attribute タイプ Description Examples Presence
network.transport 文字列 OSIトランスポート層 またはプロセス間通信方法 tcp;unix Always
network.type 文字列 OSI ネットワーク 層 または非 OSI と同等です。 ipv4;ipv6 トランスポートが tcp または udp場合。
server.address 文字列 逆引き DNS 参照なしで使用可能な場合は、サーバー アドレス ドメイン名。それ以外の場合は、IP アドレスまたは Unix ドメイン ソケット名。 example.com Always
server.port int サーバー ポート番号 80;8080;443 トランスポートが tcp または udp場合。

現在アクティブな数が、 MaxConcurrentConnectionsで構成された値を超えると、接続は拒否されます。

メトリック: kestrel.queued_connections

Name Instrument Type Unit (UCUM) Description
kestrel.queued_connections UpDownCounter {connection} 現在キューに登録され、開始を待機している接続の数。
Attribute タイプ Description Examples Presence
network.transport 文字列 OSIトランスポート層 またはプロセス間通信方法 tcp;unix Always
network.type 文字列 OSI ネットワーク 層 または非 OSI と同等です。 ipv4;ipv6 トランスポートが tcp または udp場合。
server.address 文字列 逆引き DNS 参照なしで使用可能な場合は、サーバー アドレス ドメイン名。それ以外の場合は、IP アドレスまたは Unix ドメイン ソケット名。 example.com Always
server.port int サーバー ポート番号 80;8080;443 トランスポートが tcp または udp場合。

メトリック: kestrel.queued_requests

Name Instrument Type Unit (UCUM) Description
kestrel.queued_requests UpDownCounter {request} 現在キューに登録され、開始を待機している多重接続 (HTTP/2 および HTTP/3) の HTTP 要求の数。
Attribute タイプ Description Examples Presence
network.protocol.name 文字列 OSI アプリケーション 層 または OSI 以外の同等の層。 http;web_sockets Always
network.protocol.version 文字列 network.protocol.nameで指定されたプロトコルのバージョン。 1.1;2 Always
network.transport 文字列 OSIトランスポート層 またはプロセス間通信方法 tcp;unix Always
network.type 文字列 OSI ネットワーク 層 または非 OSI と同等です。 ipv4;ipv6 トランスポートが tcp または udp場合。
server.address 文字列 逆引き DNS 参照なしで使用可能な場合は、サーバー アドレス ドメイン名。それ以外の場合は、IP アドレスまたは Unix ドメイン ソケット名。 example.com Always
server.port int サーバー ポート番号 80;8080;443 トランスポートが tcp または udp場合。

メトリック: kestrel.upgraded_connections

Name Instrument Type Unit (UCUM) Description
kestrel.upgraded_connections UpDownCounter {connection} 現在アップグレードされている接続の数 (WebSocket)。
Attribute タイプ Description Examples Presence
network.transport 文字列 OSIトランスポート層 またはプロセス間通信方法 tcp;unix Always
network.type 文字列 OSI ネットワーク 層 または非 OSI と同等です。 ipv4;ipv6 トランスポートが tcp または udp場合。
server.address 文字列 逆引き DNS 参照なしで使用可能な場合は、サーバー アドレス ドメイン名。それ以外の場合は、IP アドレスまたは Unix ドメイン ソケット名。 example.com Always
server.port int サーバー ポート番号 80;8080;443 トランスポートが tcp または udp場合。

カウンターは HTTP/1.1 接続のみを追跡します。

メトリック: kestrel.tls_handshake.duration

Name Instrument Type Unit (UCUM) Description
kestrel.tls_handshake.duration Histogram s サーバー上の TLS ハンドシェイクの期間。
Attribute タイプ Description Examples Presence
error.type 文字列 例外の種類の完全な名前。 System.OperationCanceledException;Contoso.MyException 例外がスローされた場合。
network.transport 文字列 OSIトランスポート層 またはプロセス間通信方法 tcp;unix Always
network.type 文字列 OSI ネットワーク 層 または非 OSI と同等です。 ipv4;ipv6 トランスポートが tcp または udp場合。
server.address 文字列 逆引き DNS 参照なしで使用可能な場合は、サーバー アドレス ドメイン名。それ以外の場合は、IP アドレスまたは Unix ドメイン ソケット名。 example.com Always
server.port int サーバー ポート番号 80;8080;443 トランスポートが tcp または udp場合。
tls.protocol.version 文字列 TLS プロトコルのバージョン。 1.2;1.3 接続が TLS で保護されている場合。

OpenTelemetry を使用する場合、このメティックの既定のバケットは、[0.005、0.01、0.025、0.05、0.075、0.1、0.25、0.75、1、2.5、5、7.5、10] に設定されます。

メトリック: kestrel.active_tls_handshakes

Name Instrument Type Unit (UCUM) Description
kestrel.active_tls_handshakes UpDownCounter {handshake} サーバーで現在進行中の TLS ハンドシェイクの数。
Attribute タイプ Description Examples Presence
network.transport 文字列 OSIトランスポート層 またはプロセス間通信方法 tcp;unix Always
network.type 文字列 OSI ネットワーク 層 または非 OSI と同等です。 ipv4;ipv6 トランスポートが tcp または udp場合。
server.address 文字列 逆引き DNS 参照なしで使用可能な場合は、サーバー アドレス ドメイン名。それ以外の場合は、IP アドレスまたは Unix ドメイン ソケット名。 example.com Always
server.port int サーバー ポート番号 80;8080;443 トランスポートが tcp または udp場合。

Microsoft.AspNetCore.Http.Connections

Microsoft.AspNetCore.Http.Connections メトリックは、ASP.NET Core SignalRからの接続情報を報告します。

メトリック: signalr.server.connection.duration

Name Instrument Type Unit (UCUM) Description
signalr.server.connection.duration Histogram s サーバー上の接続の期間。
Attribute タイプ Description Examples Presence
signalr.connection.status 文字列 SignalR HTTP 接続の終了状態。 app_shutdown;timeout Always
signalr.transport 文字列 SignalR トランスポートの種類 web_sockets;long_polling Always
Value Description
normal_closure 接続は正常に閉じられました。
timeout タイムアウトのため、接続が閉じられました。
app_shutdown アプリがシャットダウンしているため、接続が閉じられました。

signalr.transport は次のいずれかです。

Value Description
server_sent_events server-sent events
long_polling Long Polling
web_sockets WebSocket

このメトリックは接続期間を追跡しており、接続が永続的 SignalR のが理想的であるため、バケットは要求期間に使用されるバケットよりも長くする必要があります。 たとえば、[0, 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300] を使用すると、5 分の上位バケットが提供されます。

メトリック: signalr.server.active_connections

Name Instrument Type Unit (UCUM) Description
signalr.server.active_connections UpDownCounter {connection} サーバーで現在アクティブになっている接続の数。
Attribute タイプ Description Examples Presence
signalr.connection.status 文字列 SignalR HTTP 接続の終了状態。 app_shutdown;timeout Always
signalr.transport 文字列 SignalR トランスポートの種類 web_sockets;long_polling Always

Microsoft.AspNetCore.Authorization

The Microsoft.AspNetCore.Authorization metrics report information about Authorization attempts in ASP.NET Core apps:

メトリック: aspnetcore.authorization.attempts

Name Instrument Type Unit (UCUM) Description
aspnetcore.authorization.attempts Counter {request} 承認が試行された要求の合計数。
Attribute タイプ Description Examples Presence
user.is_authenticated boolean 要求が認証されたユーザーから送信されたかどうか true Required
aspnetcore.authorization.policy 文字列 承認ポリシーの名前。 AtLeast21;EmployeeOnly Conditionally required 承認ポリシーを使用する場合は 。
aspnetcore.authorization.result 文字列 承認が成功したか失敗したか。 success;failure Conditionally Required 承認中に例外がスローされない場合は >。
error.type 文字列 例外の種類の完全な名前。 System.InvalidOperationException;Contoso.MyException Conditionally Required 要求がエラーで終了した場合は 。

Microsoft.AspNetCore.Authentication

The Microsoft.AspNetCore.Authentication metrics report information about Authentication in ASP.NET Core apps:

メトリック: aspnetcore.authentication.authenticate.duration

Name Instrument Type Unit (UCUM) Description
aspnetcore.authentication.authenticate.duration Histogram s 要求の認証期間。
Attribute タイプ Description Examples Presence
aspnetcore.authentication.result 文字列 認証結果。 success;failure;none;_OTHER Conditionally Required 要求がエラーで終了しなかった場合は 。
aspnetcore.authentication.scheme 文字列 認証スキームの名前。 Bearer;Cookies Conditionally Required 要求がエラーで終了しなかった場合は 。
error.type 文字列 例外の種類の完全な名前。 System.InvalidOperationException;Contoso.MyException Conditionally Required 認証に失敗した場合、または要求の場合は 〗。 がエラーで終了しました。

メトリック: aspnetcore.authentication.challenges

Name Instrument Type Unit (UCUM) Description
aspnetcore.authentication.challenges Counter {request} スキームがチャレンジされた合計回数。
Attribute タイプ Description Examples Presence
aspnetcore.authentication.scheme 文字列 認証スキームの名前。 Bearer;Cookies Conditionally Required 要求がエラーで終了しなかった場合は 。
error.type 文字列 例外の種類の完全な名前。 System.InvalidOperationException;Contoso.MyException Conditionally Required 要求がエラーで終了した場合は 。

メトリック: aspnetcore.authentication.forbids

Name Instrument Type Unit (UCUM) Description
aspnetcore.authentication.forbids Counter {request} 認証されたユーザーがアクセスを許可されていないリソースにアクセスしようとした回数の合計。
Attribute タイプ Description Examples Presence
aspnetcore.authentication.scheme 文字列 認証スキームの名前。 Bearer;Cookies Conditionally Required 要求がエラーで終了しなかった場合は 。
error.type 文字列 例外の種類の完全な名前。 System.InvalidOperationException;Contoso.MyException Conditionally Required 要求がエラーで終了した場合は 。

メトリック: aspnetcore.authentication.sign_ins

Name Instrument Type Unit (UCUM) Description
aspnetcore.authentication.sign_ins Counter {request} プリンシパルがスキームを使用してサインインした回数の合計。
Attribute タイプ Description Examples Presence
aspnetcore.authentication.scheme 文字列 認証スキームの名前。 Bearer;Cookies Conditionally Required 要求がエラーで終了しなかった場合は 。
error.type 文字列 例外の種類の完全な名前。 System.InvalidOperationException;Contoso.MyException Conditionally Required 要求がエラーで終了した場合は 。

メトリック: aspnetcore.authentication.sign_outs

Name Instrument Type Unit (UCUM) Description
aspnetcore.authentication.sign_outs Counter {request} プリンシパルがスキームを使用してサインアウトされた合計回数。
Attribute タイプ Description Examples Presence
aspnetcore.authentication.scheme 文字列 認証スキームの名前。 Bearer;Cookies Conditionally Required 要求がエラーで終了しなかった場合は 。
error.type 文字列 例外の種類の完全な名前。 System.InvalidOperationException;Contoso.MyException Conditionally Required 要求がエラーで終了した場合は 。