search_profiles default fields include columns dataset=profiles rejects (HTTP 400 Unknown field: thread.id)

オープン 初心者向け
#2,458 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
74/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
api, tooling

調査の方向性

packages/mcp-core/src/tools/support/search-events/config.ts の RECOMMENDED_FIELDS.profiles.basic から始めてください。ここには search_profiles のデフォルトフィールドが列挙されています。このリストを Sentry の src/sentry/search/events/datasets/profiles.py にある COLUMNS で受け付けられているプロファイルのエイリアスと比較し、同じ属性を使っている翻訳プロンプトの例を更新してください。search_profiles をデフォルトで呼び出したときに thread.id などのフィールドを要求しなくなり、search-events のテストが通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

mcp-feedback-pattern

search_profiles asks the events API for columns that dataset=profiles does not have, so the default call fails with HTTP 400 Unknown field.

What happens

With no fields, search_profiles requests RECOMMENDED_FIELDS.profiles.basic (packages/mcp-core/src/tools/support/search-events/config.ts). That list includes profiler.id, thread.id, precise.start_ts, and precise.finish_ts. The translator prompt also lists these as profile attributes and has a "continuous profiles for a profiler session" example that uses them.

dataset=profiles only accepts the aliases in COLUMNS in getsentry/sentry src/sentry/search/events/datasets/profiles.py (plus project / project.name). ProfilesDatasetConfig.resolve_column raises InvalidSearchQuery(f"Unknown field: {column}") for anything else. /events/validate/ accepts the same request, so validation does not catch it.

Evidence (sentry/mcp-server spans, last 14 days)

  • GET /api/0/organizations/<org>/events/?dataset=profiles&... with field=thread.id: 503 calls, all span.status:error, 0 ok, across 38 MCP clients.
  • A default call with query=environment:production requested profile.id, profiler.id, thread.id, ..., precise.start_ts, precise.finish_ts and failed; the /events/validate/ call just before it with the same fields returned ok.

Reports

  • MCP-SERVER-GTE: "The default search_profiles call with a simple environment filter returned API HTTP 400 Unknown field: thread.id."

Report count: 1

via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_d229acf1bdc5e10705f0da9e1b043518.

--

View Session [Sentry]

主要言語
TypeScript
スター
975
フォーク
189
平均マージ
19時間 57分
マージ済み PR(30日)
542

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/toolkit のほかの issue

getsentry/toolkit の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。