Azure / Azure/data-api-builder
[Bug]: Critical! MCP operations are not counted in DAB custom metrics
- 主要言語
- C#
- スター
- 1.5k
- フォーク
- 370
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 9
説明
MCP tool invocations (describe_entities, read_records, create_record, update_record, delete_record, aggregate_records) do not appear in any of the 4 DAB custom OTEL metrics (`active_requests`, `total_requests`, `total_errors`, `request_duration`).
## Expected
MCP operations should be tracked with `api_type: MCP` alongside REST and GraphQL, providing uniform observability across all three API surfaces.
```
NumberDataPoints #N
Data point attributes:
-> api_type: Str(MCP)
-> endpoint: Str(read_records)
-> method: Str(Post)
-> status_code: Str(OK)
Value: 1
```
## Actual
The `api_type` metric dimension only contains `REST` (22 data points) and `GraphQL` (6 data points). Zero data points exist with `api_type: MCP`, despite 6 successful MCP operations being executed during testing.
コントリビューションガイド
調査の方向性
Issue に記載されている 6 つの MCP ツール呼び出しを再現し、既存の REST および GraphQL のメトリクスパスと併せて MCP リクエストのインストルメンテーションを調査します。4 つの DAB カスタム OTEL メトリクスと、それらの api_type、endpoint、method、status_code の各ディメンションを検証します。完了とは、成功した MCP 操作によって一貫して MCP データポイントが生成されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- api, observability
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100