Repository navigation
fix(conversations): Track table page views on every Agents tab - #130776
Merged
Merged
Conversation
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]>
vgrozdanic
approved these changes
Nov 11, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
conversations.table.page-viewonly 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-viewwhenever a table is shown, on any tab, and adds atabparameter:conversations,traces, orspans(LLM Calls). The values match thetableURL param. Switching tabs fires the event again for the new tab.What stays the same:
conversations.onboarding.page-viewinstead (fix(conversations): Track onboarding page views on every tab #130767).conversations.page-viewstill fires on every load.Expect
conversations.table.page-viewvolume 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