Skip to content

Commit 158e979

Browse files
obostjanciccodex
andcommitted
fix(dashboards): Sync MCP prebuilt configs
Update the MCP prebuilt dashboard filters to use span.name for mcp.server. This keeps the prebuilt dashboards aligned with the field migration on this branch so the default queries continue to return MCP data. Refs TET-2070 Co-Authored-By: Codex <noreply@openai.com>
1 parent 1a73039 commit 158e979

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

static/app/views/dashboards/utils/prebuiltConfigs/ai/mcpOverview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {WIDGET_COLUMN_LABELS} from 'sentry/views/dashboards/utils/prebuiltConfig
66
import {spaceWidgetsEquallyOnRow} from 'sentry/views/dashboards/utils/prebuiltConfigs/utils/spaceWidgetsEquallyOnRow';
77
import {SpanFields, SpanFunction} from 'sentry/views/insights/types';
88

9-
const MCP_SERVER_FILTER = `${SpanFields.SPAN_OP}:mcp.server`;
9+
const MCP_SERVER_FILTER = `${SpanFields.NAME}:mcp.server`;
1010
const MCP_TOOL_FILTER = `${MCP_SERVER_FILTER} has:${SpanFields.MCP_TOOL_NAME}`;
1111
const MCP_RESOURCE_FILTER = `${MCP_SERVER_FILTER} has:${SpanFields.MCP_RESOURCE_URI}`;
1212
const MCP_PROMPT_FILTER = `${MCP_SERVER_FILTER} has:${SpanFields.MCP_PROMPT_NAME}`;

static/app/views/dashboards/utils/prebuiltConfigs/ai/mcpPrompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {WIDGET_COLUMN_LABELS} from 'sentry/views/dashboards/utils/prebuiltConfig
77
import {spaceWidgetsEquallyOnRow} from 'sentry/views/dashboards/utils/prebuiltConfigs/utils/spaceWidgetsEquallyOnRow';
88
import {SpanFields, SpanFunction} from 'sentry/views/insights/types';
99

10-
const MCP_PROMPT_FILTER = `${SpanFields.SPAN_OP}:mcp.server has:${SpanFields.MCP_PROMPT_NAME}`;
10+
const MCP_PROMPT_FILTER = `${SpanFields.NAME}:mcp.server has:${SpanFields.MCP_PROMPT_NAME}`;
1111

1212
const FIRST_ROW_WIDGETS = spaceWidgetsEquallyOnRow(
1313
[

static/app/views/dashboards/utils/prebuiltConfigs/ai/mcpResources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {WIDGET_COLUMN_LABELS} from 'sentry/views/dashboards/utils/prebuiltConfig
77
import {spaceWidgetsEquallyOnRow} from 'sentry/views/dashboards/utils/prebuiltConfigs/utils/spaceWidgetsEquallyOnRow';
88
import {SpanFields, SpanFunction} from 'sentry/views/insights/types';
99

10-
const MCP_RESOURCE_FILTER = `${SpanFields.SPAN_OP}:mcp.server has:${SpanFields.MCP_RESOURCE_URI}`;
10+
const MCP_RESOURCE_FILTER = `${SpanFields.NAME}:mcp.server has:${SpanFields.MCP_RESOURCE_URI}`;
1111

1212
const FIRST_ROW_WIDGETS = spaceWidgetsEquallyOnRow(
1313
[

static/app/views/dashboards/utils/prebuiltConfigs/ai/mcpTools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {WIDGET_COLUMN_LABELS} from 'sentry/views/dashboards/utils/prebuiltConfig
77
import {spaceWidgetsEquallyOnRow} from 'sentry/views/dashboards/utils/prebuiltConfigs/utils/spaceWidgetsEquallyOnRow';
88
import {SpanFields, SpanFunction} from 'sentry/views/insights/types';
99

10-
const MCP_TOOL_FILTER = `${SpanFields.SPAN_OP}:mcp.server has:${SpanFields.MCP_TOOL_NAME}`;
10+
const MCP_TOOL_FILTER = `${SpanFields.NAME}:mcp.server has:${SpanFields.MCP_TOOL_NAME}`;
1111

1212
const FIRST_ROW_WIDGETS = spaceWidgetsEquallyOnRow(
1313
[

0 commit comments

Comments
 (0)