Skip to content

feat(ourlogs): add tab click tracking for Logs and Traces explore tabs#115748

Open
JoshuaKGoldberg wants to merge 4 commits into
masterfrom
feat/logs-traces-tab-click-tracking
Open

feat(ourlogs): add tab click tracking for Logs and Traces explore tabs#115748
JoshuaKGoldberg wants to merge 4 commits into
masterfrom
feat/logs-traces-tab-click-tracking

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Member

@JoshuaKGoldberg JoshuaKGoldberg commented May 18, 2026

Adds Amplitude click tracking when users switch tabs in two Explore surfaces:

  • Explore > Logs: fires logs.explorer.table_tab_changed (with tab: "logs" | "aggregates") when switching between the Logs and Aggregates tabs
  • Explore > Traces: fires trace.explorer.table_tab_changed (with tab: "span" | "trace" | "aggregate" | "attribute_breakdowns") when switching between Span Samples, Trace Samples, Aggregates, and Attribute Breakdowns tabs

Both surfaces already emit metadata events that include the active mode at query-result time, but nothing fired on the click itself.

Closes LOGS-764.

Fire analytics events when the user switches between the Logs/Aggregates
tabs in Explore > Logs and the Span Samples/Trace Samples/Aggregates/Attribute
Breakdowns tabs in Explore > Traces.

Both areas already emit metadata events that include the active mode at
data-load time, but nothing fires on the actual click. These new events
make tab usage visible in Amplitude independently of query results.

Refs LOGS-764
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 18, 2026

LOGS-764

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.57%

@JoshuaKGoldberg JoshuaKGoldberg changed the title feat(ourlogs): Add tab click tracking for Logs and Traces explore tabs feat(ourlogs): add tab click tracking for Logs and Traces explore tabs May 18, 2026
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review May 18, 2026 20:52
@JoshuaKGoldberg JoshuaKGoldberg requested review from a team as code owners May 18, 2026 20:52
Comment thread static/app/views/explore/tables/index.tsx Outdated
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0c5dc2d. Configure here.

Comment thread static/app/views/explore/spans/spansTab.tsx Outdated
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