Skip to content

Commit de377a6

Browse files
Abdkhan14Abdullah Khan
andauthored
feat(trace-eap-waterfall): Hiding some attrs (#93964)
Co-authored-by: Abdullah Khan <abdullahkhan@PG9Y57YDXQ.local>
1 parent b3f40e5 commit de377a6

File tree

1 file changed

+6
-2
lines changed
  • static/app/views/performance/newTraceDetails/traceDrawer/details/span/eapSections

1 file changed

+6
-2
lines changed

static/app/views/performance/newTraceDetails/traceDrawer/details/span/eapSections/attributes.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import {makeReplaysPathname} from 'sentry/views/replays/pathnames';
3131

3232
type CustomRenderersProps = AttributesFieldRendererProps<RenderFunctionBaggage>;
3333

34+
const HIDDEN_ATTRIBUTES = ['is_segment', 'project_id', 'received'];
35+
3436
export function Attributes({
3537
node,
3638
attributes,
@@ -60,8 +62,10 @@ export function Attributes({
6062
return sorted;
6163
}
6264

63-
return sorted.filter(attribute =>
64-
attribute.name.toLowerCase().trim().includes(searchQuery.toLowerCase().trim())
65+
return sorted.filter(
66+
attribute =>
67+
!HIDDEN_ATTRIBUTES.includes(attribute.name) &&
68+
attribute.name.toLowerCase().trim().includes(searchQuery.toLowerCase().trim())
6569
);
6670
}, [attributes, searchQuery]);
6771

0 commit comments

Comments
 (0)