1
1
import { openModal } from 'sentry/actionCreators/modal' ;
2
2
import { Button } from 'sentry/components/core/button' ;
3
3
import { DropdownMenu } from 'sentry/components/dropdownMenu' ;
4
- import { IconEllipsis } from 'sentry/icons' ;
4
+ import { IconEllipsis , IconOpen } from 'sentry/icons' ;
5
5
import { t } from 'sentry/locale' ;
6
6
import type { EventTransaction } from 'sentry/types/event' ;
7
7
import { trackAnalytics } from 'sentry/utils/analytics' ;
@@ -103,16 +103,6 @@ function TraceActionsMenu({
103
103
navigate ( target ) ;
104
104
} ,
105
105
} ,
106
- {
107
- key : 'custom_instrumentation_button' ,
108
- label : t ( 'Add Instrumentation' ) ,
109
- onAction : ( ) => {
110
- const docsLink = getCustomInstrumentationLink ( traceProject ) ;
111
- if ( docsLink ) {
112
- window . location . href = docsLink ;
113
- }
114
- } ,
115
- } ,
116
106
{
117
107
key : 'shortcuts_button' ,
118
108
label : t ( 'See Shortcuts' ) ,
@@ -121,6 +111,17 @@ function TraceActionsMenu({
121
111
openModal ( props => < TraceShortcutsModal { ...props } /> ) ;
122
112
} ,
123
113
} ,
114
+ {
115
+ key : 'external-actions' ,
116
+ children : [
117
+ {
118
+ key : 'custom_instrumentation_button' ,
119
+ label : t ( 'Add Instrumentation' ) ,
120
+ externalHref : getCustomInstrumentationLink ( traceProject ) ,
121
+ leadingItems : < IconOpen /> ,
122
+ } ,
123
+ ] ,
124
+ } ,
124
125
] }
125
126
trigger = { triggerProps => (
126
127
< Button
0 commit comments