@@ -16,7 +16,6 @@ import {FieldKey} from 'sentry/utils/fields';
16
16
import { generateProfileFlamechartRoute } from 'sentry/utils/profiling/routes' ;
17
17
import { ellipsize } from 'sentry/utils/string/ellipsize' ;
18
18
import { looksLikeAJSONArray } from 'sentry/utils/string/looksLikeAJSONArray' ;
19
- import { useIsSentryEmployee } from 'sentry/utils/useIsSentryEmployee' ;
20
19
import type { AttributesFieldRendererProps } from 'sentry/views/explore/components/traceItemAttributes/attributesTree' ;
21
20
import { AttributesTree } from 'sentry/views/explore/components/traceItemAttributes/attributesTree' ;
22
21
import type { TraceItemResponseAttribute } from 'sentry/views/explore/hooks/useTraceItemDetails' ;
@@ -95,7 +94,6 @@ export function Attributes({
95
94
} ) {
96
95
const [ searchQuery , setSearchQuery ] = useState ( '' ) ;
97
96
const traceState = useTraceState ( ) ;
98
- const isSentryEmployee = useIsSentryEmployee ( ) ;
99
97
const shouldUseOTelFriendlyUI = useOTelFriendlyUI ( ) ;
100
98
const columnCount =
101
99
traceState . preferences . layout === 'drawer left' ||
@@ -110,21 +108,7 @@ export function Attributes({
110
108
attribute => ! HIDDEN_ATTRIBUTES . includes ( attribute . name )
111
109
) ;
112
110
113
- // `sentry._internal` attributes are used to track internal system behavior (e.g., the span buffer outcomes). Only show these to Sentry staff.
114
- const onlyAllowedAttributes = onlyVisibleAttributes . filter ( attribute => {
115
- if (
116
- ( attribute . name . startsWith ( 'sentry._internal' ) ||
117
- attribute . name . startsWith ( 'sentry._meta' ) ||
118
- attribute . name . startsWith ( '__sentry_internal' ) ) &&
119
- ! isSentryEmployee
120
- ) {
121
- return false ;
122
- }
123
-
124
- return true ;
125
- } ) ;
126
-
127
- const filteredByOTelMode = onlyAllowedAttributes . filter ( attribute => {
111
+ const filteredByOTelMode = onlyVisibleAttributes . filter ( attribute => {
128
112
if ( shouldUseOTelFriendlyUI ) {
129
113
return ! [ 'span.description' , 'span.op' ] . includes ( attribute . name ) ;
130
114
}
@@ -143,7 +127,7 @@ export function Attributes({
143
127
} ) ;
144
128
145
129
return onlyMatchingAttributes ;
146
- } , [ attributes , searchQuery , isSentryEmployee , shouldUseOTelFriendlyUI ] ) ;
130
+ } , [ attributes , searchQuery , shouldUseOTelFriendlyUI ] ) ;
147
131
148
132
const customRenderers : Record <
149
133
string ,
0 commit comments