File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
static/app/components/onboarding Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ function getDisabledProducts(organization: Organization): DisabledProducts {
3333 const hasPerformance = organization . features . includes ( 'performance-view' ) ;
3434 const hasProfiling = organization . features . includes ( 'profiling-view' ) ;
3535 const hasLogs = organization . features . includes ( 'ourlogs-enabled' ) ;
36+ const hasMetrics = organization . features . includes ( 'tracemetrics-enabled' ) ;
3637 const isSelfHostedErrorsOnly = ConfigStore . get ( 'isSelfHostedErrorsOnly' ) ;
3738
3839 let reason = t ( 'This feature is not enabled on your Sentry installation.' ) ;
@@ -76,6 +77,12 @@ function getDisabledProducts(organization: Organization): DisabledProducts {
7677 onClick : createClickHandler ( 'organizations:ourlogs-enabled' , 'Logs' ) ,
7778 } ;
7879 }
80+ if ( ! hasMetrics ) {
81+ disabledProducts [ ProductSolution . METRICS ] = {
82+ reason,
83+ onClick : createClickHandler ( 'organizations:tracemetrics-enabled' , 'Metrics' ) ,
84+ } ;
85+ }
7986 return disabledProducts ;
8087}
8188
You can’t perform that action at this time.
0 commit comments