File tree 3 files changed +16
-820
lines changed
3 files changed +16
-820
lines changed Original file line number Diff line number Diff line change 60
60
"@gitpod/supervisor-api-grpcweb" : " 0.1.5" ,
61
61
"@gitpod/usage-api" : " 0.1.5" ,
62
62
"@gitpod/ws-manager" : " 0.1.5" ,
63
- "@google-cloud/profiler" : " ^6.0.0" ,
64
63
"@improbable-eng/grpc-web-node-http-transport" : " ^0.14.0" ,
65
64
"@jmondi/oauth2-server" : " ^2.6.1" ,
66
65
"@octokit/rest" : " 18.6.1" ,
Original file line number Diff line number Diff line change @@ -69,27 +69,6 @@ installCtxLogAugmenter();
69
69
installLogCountMetric ( ) ;
70
70
71
71
// eslint-disable-next-line @typescript-eslint/no-floating-promises
72
- ( async ( ) => {
73
- if ( process . env . GOOGLE_CLOUD_PROFILER ?. toLocaleLowerCase ( ) !== "true" ) {
74
- console . log ( "skipping cloud profiler, not enabled" ) ;
75
- return ;
76
- }
77
- console . log ( "starting cloud profiler" ) ;
78
-
79
- try {
80
- const profiler = await import ( "@google-cloud/profiler" ) ;
81
- // there is no way to stop it: https://github.com/googleapis/cloud-profiler-nodejs/issues/876
82
- // disable google_cloud_profiler and cycle servers
83
- await profiler . start ( {
84
- serviceContext : {
85
- service : "server" ,
86
- version : process . env . VERSION ,
87
- } ,
88
- } ) ;
89
- } catch ( err ) {
90
- console . error ( "failed to start cloud profiler" , err ) ;
91
- }
92
- } ) ( ) ;
93
72
94
73
export async function start ( container : Container ) {
95
74
const server = container . get ( Server ) ;
You can’t perform that action at this time.
0 commit comments