File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/vs/gitpod/browser/workbench Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 49
49
}
50
50
51
51
const onVsCodeWorkbenchError = ( event ) => {
52
+ try {
53
+ if ( ! sessionStorage . getItem ( 'gitpodSessionReportedError' ) ) {
54
+ sessionStorage . setItem ( 'gitpodSessionReportedError' , 'true' ) ;
55
+ gitpodMetricsAddCounter ( 'gitpod_supervisor_frontend_sessions_errored' ) ;
56
+ }
57
+ } catch { }
58
+
52
59
if ( typeof event ?. target ?. getAttribute !== 'function' ) {
53
60
gitpodMetricsAddCounter ( 'gitpod_supervisor_frontend_error_total' ) ;
54
61
return ;
68
75
gitpodMetricsAddCounter ( 'gitpod_supervisor_frontend_error_total' , labels ) ;
69
76
} ;
70
77
78
+ try {
79
+ if ( ! sessionStorage . getItem ( 'gitpodSessionReportedLoad' ) ) {
80
+ sessionStorage . setItem ( 'gitpodSessionReportedLoad' , 'true' ) ;
81
+ gitpodMetricsAddCounter ( 'gitpod_supervisor_frontend_sessions_total' ) ;
82
+ }
83
+ } catch { }
84
+
85
+ </ script >
86
+ < script >
71
87
performance . mark ( 'code/didStartRenderer' ) ;
72
88
</ script >
73
89
< meta charset ="utf-8 " />
You can’t perform that action at this time.
0 commit comments