Skip to content

feat(ourlogs): use truncate parameter in page-level logs requests#116009

Open
JoshuaKGoldberg wants to merge 7 commits into
masterfrom
logs-query-truncate-frontend
Open

feat(ourlogs): use truncate parameter in page-level logs requests#116009
JoshuaKGoldberg wants to merge 7 commits into
masterfrom
logs-query-truncate-frontend

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Member

@JoshuaKGoldberg JoshuaKGoldberg commented May 21, 2026

Sends a viewport-proportional truncate query parameter with each page-level events/ logs API request to reduce payload size. This can reduce response payload size nicely when there are huge log fields, such as -but not limited to- message.

The expanded log row detail panel still queries full fields for each log, and prefers those over the potentially truncated ones.

Split out of #115638. #116008 has the corresponding backend changes.

Closes LOGS-817.

…w details

Sends a viewport-based `truncate` query parameter from the logs query
to reduce payload size, and reads the full message from log attributes
in the row detail panel so the expanded view always shows untruncated text.
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner May 21, 2026 14:46
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 21, 2026

LOGS-817

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

📊 Type Coverage Diff

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

Comment thread static/app/views/explore/logs/tables/logsTableRow.tsx Outdated
Comment thread static/app/views/explore/logs/tables/logsTableRow.tsx Outdated
Comment thread static/app/views/explore/logs/tables/logsTableRow.tsx
organization,
selection,
showExploreSimilarSpansLink,
})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Similar spans uses truncated text

Medium Severity

With list responses truncated via the new truncate query param, the Explore similar spans menu still builds its query from the table cell value, so the cross-events filter can use a shortened message while the detail panel and detail filters use the full text.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 89f5afe. Configure here.

Comment thread static/app/views/explore/logs/tables/logsTableRow.tsx
Comment thread static/app/views/explore/logs/tables/logsTableRow.tsx
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.

There are 3 total unresolved issues (including 2 from previous reviews).

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 337108b. Configure here.

Comment thread static/app/views/explore/logs/tables/logsTableRow.tsx
Comment thread static/app/views/explore/logs/useLogsQueryTruncate.tsx Outdated
@JoshuaKGoldberg JoshuaKGoldberg changed the title feat(ourlogs): send truncate param and show full message in log details feat(ourlogs): use truncate parameter in page-level logs requests May 21, 2026
Copy link
Copy Markdown
Contributor

@adrianviquez adrianviquez left a comment

Choose a reason for hiding this comment

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

Small comments but 🚀

Comment thread static/app/views/explore/logs/tables/logsTableRow.tsx
Comment thread static/app/views/explore/logs/tables/logsTableRow.tsx
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