Skip to content

feat(trace-eap-waterfall): Cleaning up trace context sections #90091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Abdkhan14
Copy link
Contributor

  • Only rendering contexts when we have data to populate them with.
  • Disabled collapse persistence for the context sections.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 22, 2025
@Abdkhan14 Abdkhan14 marked this pull request as ready for review April 22, 2025 20:40
@Abdkhan14 Abdkhan14 requested a review from a team as a code owner April 22, 2025 20:40
key="logs"
type={TraceContextSectionKeys.LOGS}
<FoldSection
sectionKey={TraceContextSectionKeys.LOGS as string as SectionKey}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be adding these to SectionKey? I noticed there were a few more keys in the PR that were being forced to SectionKey

Comment on lines 30 to 35
const hasProfiles = tree.type === 'trace' && tree.profiled_events.size > 0;
const hasLogs = logs && logs?.length > 0;
const hasTags =
rootEvent.data &&
rootEvent.data.tags.length > 0 &&
!(tree.type === 'empty' && hasLogs); // We don't show tags for only logs trace views
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: might be useful to break this out into a shareable function. Looks like the same logic is being used somewhere else in this pr too

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