File tree 6 files changed +25
-33
lines changed
static/app/views/insights/sessions
6 files changed +25
-33
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export default function ErrorFreeSessionsChart() {
7
7
const { series, isPending, error} = useErrorFreeSessions ( ) ;
8
8
9
9
const aliases = {
10
- successful_session_rate : t ( 'Error free session rate ' ) ,
10
+ successful_session_rate : t ( 'crash_free_rate( session) ' ) ,
11
11
} ;
12
12
13
13
return (
Original file line number Diff line number Diff line change 1
1
import ExternalLink from 'sentry/components/links/externalLink' ;
2
2
import { t , tct } from 'sentry/locale' ;
3
3
import { InsightsLineChartWidget } from 'sentry/views/insights/common/components/insightsLineChartWidget' ;
4
- import { FRONTEND_LANDING_SUB_PATH } from 'sentry/views/insights/pages/frontend/settings' ;
5
4
import useSessionHealthBreakdown from 'sentry/views/insights/sessions/queries/useSessionHealthBreakdown' ;
6
5
7
- export default function SessionHealthCountChart ( { view } : { view : string } ) {
6
+ export default function SessionHealthCountChart ( ) {
8
7
const { series, isPending, error} = useSessionHealthBreakdown ( { type : 'count' } ) ;
9
- const frontendPath = view === FRONTEND_LANDING_SUB_PATH ;
10
8
11
9
const aliases = {
12
- healthy_session_count : t ( 'Healthy' ) ,
13
- crashed_session_count : frontendPath ? t ( 'Unhandled errors' ) : t ( 'Crashed' ) ,
14
- errored_session_count : frontendPath ? t ( 'Handled errors' ) : t ( 'Errored' ) ,
15
- abnormal_session_count : t ( 'Abnormal' ) ,
10
+ healthy_session_count : 'count_healthy(session)' ,
11
+ crashed_session_count : 'count_crashed(session)' ,
12
+ errored_session_count : 'count_errored(session)' ,
13
+ abnormal_session_count : 'count_abnormal(session)' ,
16
14
} ;
17
15
18
16
return (
Original file line number Diff line number Diff line change 1
1
import ExternalLink from 'sentry/components/links/externalLink' ;
2
2
import { t , tct } from 'sentry/locale' ;
3
3
import { InsightsAreaChartWidget } from 'sentry/views/insights/common/components/insightsAreaChartWidget' ;
4
- import { FRONTEND_LANDING_SUB_PATH } from 'sentry/views/insights/pages/frontend/settings' ;
5
4
import useSessionHealthBreakdown from 'sentry/views/insights/sessions/queries/useSessionHealthBreakdown' ;
6
5
7
- export default function SessionHealthRateChart ( { view } : { view : string } ) {
6
+ export default function SessionHealthRateChart ( ) {
8
7
const { series, isPending, error} = useSessionHealthBreakdown ( { type : 'rate' } ) ;
9
- const frontendPath = view === FRONTEND_LANDING_SUB_PATH ;
10
8
11
9
const aliases = {
12
- healthy_session_rate : t ( 'Healthy' ) ,
13
- crashed_session_rate : frontendPath ? t ( 'Unhandled errors' ) : t ( 'Crashed' ) ,
14
- errored_session_rate : frontendPath ? t ( 'Handled errors' ) : t ( 'Errored' ) ,
15
- abnormal_session_rate : t ( 'Abnormal' ) ,
10
+ healthy_session_rate : 'rate_healthy(session)' ,
11
+ crashed_session_rate : 'rate_crashed(session)' ,
12
+ errored_session_rate : 'rate_errored(session)' ,
13
+ abnormal_session_rate : 'rate_abnormal(session)' ,
16
14
} ;
17
15
18
16
return (
Original file line number Diff line number Diff line change 1
1
import ExternalLink from 'sentry/components/links/externalLink' ;
2
2
import { t , tct } from 'sentry/locale' ;
3
3
import { InsightsLineChartWidget } from 'sentry/views/insights/common/components/insightsLineChartWidget' ;
4
- import { FRONTEND_LANDING_SUB_PATH } from 'sentry/views/insights/pages/frontend/settings' ;
5
4
import useUserHealthBreakdown from 'sentry/views/insights/sessions/queries/useUserHealthBreakdown' ;
6
5
7
- export default function UserHealthCountChart ( { view } : { view : string } ) {
6
+ export default function UserHealthCountChart ( ) {
8
7
const { series, isPending, error} = useUserHealthBreakdown ( { type : 'count' } ) ;
9
- const frontendPath = view === FRONTEND_LANDING_SUB_PATH ;
10
8
11
9
const aliases = {
12
- healthy_user_count : t ( 'Healthy' ) ,
13
- crashed_user_count : frontendPath ? t ( 'Unhandled errors' ) : t ( 'Crashed' ) ,
14
- errored_user_count : frontendPath ? t ( 'Handled errors' ) : t ( 'Errored' ) ,
15
- abnormal_user_count : t ( 'Abnormal' ) ,
10
+ healthy_user_count : 'count_healthy(user)' ,
11
+ crashed_user_count : 'count_crashed(user)' ,
12
+ errored_user_count : 'count_errored(user)' ,
13
+ abnormal_user_count : 'count_abnormal(user)' ,
16
14
} ;
17
15
18
16
return (
Original file line number Diff line number Diff line change 1
1
import ExternalLink from 'sentry/components/links/externalLink' ;
2
2
import { t , tct } from 'sentry/locale' ;
3
3
import { InsightsAreaChartWidget } from 'sentry/views/insights/common/components/insightsAreaChartWidget' ;
4
- import { FRONTEND_LANDING_SUB_PATH } from 'sentry/views/insights/pages/frontend/settings' ;
5
4
import useUserHealthBreakdown from 'sentry/views/insights/sessions/queries/useUserHealthBreakdown' ;
6
5
7
- export default function UserHealthRateChart ( { view } : { view : string } ) {
6
+ export default function UserHealthRateChart ( ) {
8
7
const { series, isPending, error} = useUserHealthBreakdown ( { type : 'rate' } ) ;
9
- const frontendPath = view === FRONTEND_LANDING_SUB_PATH ;
10
8
11
9
const aliases = {
12
- healthy_user_rate : t ( 'Healthy' ) ,
13
- crashed_user_rate : frontendPath ? t ( 'Unhandled errors' ) : t ( 'Crashed' ) ,
14
- errored_user_rate : frontendPath ? t ( 'Handled errors' ) : t ( 'Errored' ) ,
15
- abnormal_user_rate : t ( 'Abnormal' ) ,
10
+ healthy_user_rate : 'rate_healthy(user)' ,
11
+ crashed_user_rate : 'rate_crashed(user)' ,
12
+ errored_user_rate : 'rate_errored(user)' ,
13
+ abnormal_user_rate : 'rate_abnormal(user)' ,
16
14
} ;
17
15
18
16
return (
Original file line number Diff line number Diff line change @@ -54,17 +54,17 @@ export function SessionsOverview() {
54
54
</ ModuleLayout . Third >
55
55
) : undefined }
56
56
< ModuleLayout . Third >
57
- < SessionHealthCountChart view = { view } />
57
+ < SessionHealthCountChart />
58
58
</ ModuleLayout . Third >
59
59
< ModuleLayout . Third >
60
- < UserHealthCountChart view = { view } />
60
+ < UserHealthCountChart />
61
61
</ ModuleLayout . Third >
62
62
< ModuleLayout . Third />
63
63
< ModuleLayout . Third >
64
- < SessionHealthRateChart view = { view } />
64
+ < SessionHealthRateChart />
65
65
</ ModuleLayout . Third >
66
66
< ModuleLayout . Third >
67
- < UserHealthRateChart view = { view } />
67
+ < UserHealthRateChart />
68
68
</ ModuleLayout . Third >
69
69
</ Fragment >
70
70
) ;
You can’t perform that action at this time.
0 commit comments