Skip to content

Commit 10672a1

Browse files
authored
[server] Remove google-cloud-profiler (#20691)
Tool: gitpod/catfood.gitpod.cloud
1 parent c185393 commit 10672a1

File tree

3 files changed

+16
-820
lines changed

3 files changed

+16
-820
lines changed

Diff for: components/server/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
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",

Diff for: components/server/src/init.ts

-21
Original file line numberDiff line numberDiff line change
@@ -69,27 +69,6 @@ installCtxLogAugmenter();
6969
installLogCountMetric();
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

9473
export async function start(container: Container) {
9574
const server = container.get(Server);

0 commit comments

Comments
 (0)