File tree Expand file tree Collapse file tree 3 files changed +16
-820
lines changed Expand file tree Collapse file tree 3 files changed +16
-820
lines changed Original file line number Diff line number Diff line change 6060 "@gitpod/supervisor-api-grpcweb" : " 0.1.5" ,
6161 "@gitpod/usage-api" : " 0.1.5" ,
6262 "@gitpod/ws-manager" : " 0.1.5" ,
63- "@google-cloud/profiler" : " ^6.0.0" ,
6463 "@improbable-eng/grpc-web-node-http-transport" : " ^0.14.0" ,
6564 "@jmondi/oauth2-server" : " ^2.6.1" ,
6665 "@octokit/rest" : " 18.6.1" ,
Original file line number Diff line number Diff line change @@ -69,27 +69,6 @@ installCtxLogAugmenter();
6969installLogCountMetric ( ) ;
7070
7171// 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- } ) ( ) ;
9372
9473export async function start ( container : Container ) {
9574 const server = container . get ( Server ) ;
You can’t perform that action at this time.
0 commit comments