Skip to content

fix(conversations): Track table page views on every Agents tab - #130776

Merged
ale-cota merged 1 commit into
masterfrom
fix/agents-track-table-tab-views
Nov 11, 2026
Merged

ale-cota merged 1 commit into
masterfrom
fix/agents-track-table-tab-views

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

conversations.table.page-view only fires when the Conversations tab is selected on Explore → Agents. The Traces and LLM Calls tabs send no page view of their own. Since #124279, orgs without conversation IDs land on Traces by default, so we can't see which tables most visitors use.

This fires conversations.table.page-view whenever a table is shown, on any tab, and adds a tab parameter: conversations, traces, or spans (LLM Calls). The values match the table URL param. Switching tabs fires the event again for the new tab.

What stays the same:

Expect conversations.table.page-view volume to go up once this ships. Data before then only covers the Conversations tab.

Not included: a separate tab-switch event on the overview. Each switch now fires a page view with the new tab, so switches show up in the data. Telling a default landing apart from a deliberate click would still need its own event.

via ale.

--

View Session in Sentry

conversations.table.page-view only fired on the Conversations tab, so
views of the Traces and LLM Calls tabs were never recorded. Orgs without
conversation IDs land on Traces by default, so most table views went
untracked.

Fire the event for whichever tab shows a table and add a `tab` parameter
(conversations, traces, spans). Switching tabs fires it again.

Co-Authored-By: ale <[email protected]>
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner November 11, 2026 12:31
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 11, 2026
@ale-cota
ale-cota merged commit 6f987a2 into master Nov 11, 2026
86 checks passed
@ale-cota
ale-cota deleted the fix/agents-track-table-tab-views branch November 11, 2026 12:43
ale-cota added a commit that referenced this pull request Nov 11, 2026
…tics (#130777)

Two Agents analytics events are still defined, but nothing fires them
anymore:

- **`conversations.detail.tab-switch`**: the event stopped arriving
after the conversation detail redesign rolled out. #120434 then removed
the old components that fired it, and the new Transcript/Timeline tabs
in `conversationDetail.tsx` never tracked it.
- **`conversations.save_as`**: #126303 replaced the legacy Agents chart
with dashboard `WidgetCard`s. The old chart's own menu fired this event
for "Create alert" and "Add to dashboard". The shared widget context
menu doesn't.

Changes:

- **Tab switches**: the detail page Tabs `onChange` fires
`conversations.detail.tab-switch` with `fromTab` / `toTab` when the tab
actually changes.
- **WidgetCard callback**: new optional `onContextMenuAction(key)` prop.
A small `withMenuActionCallback` helper wraps each menu item's
`onAction`, including submenu children like the per-series "Create a
Monitor for" items, so the existing action still runs. Other
`WidgetCard` callers are unchanged.
- **Agents charts**: `AgentsCharts` maps `add-to-dashboard` →
`save_type: 'dashboard'` and `create-alert*` → `save_type: 'alert'`. It
also sends a new `chart` param with the widget id, so we can tell which
chart was saved.

Tests cover the tab-switch event, the WidgetCard callback (it reports
the key and still runs the original action), and Add to Dashboard from
the Agents overview firing `save_as`.

Follow-up to #130776.

<!-- junior-request-attribution:start -->
via **ale**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:local%3Aweb%3A486bbfe9b2d4cf324748a1ed -->

--

[View Session in
Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A486bbfe9b2d4cf324748a1ed/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: ale <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — ed52031b Deployed Nov 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants