Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion components/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"@gitpod/supervisor-api-grpcweb": "0.1.5",
"@gitpod/usage-api": "0.1.5",
"@gitpod/ws-manager": "0.1.5",
"@google-cloud/profiler": "^6.0.0",
"@improbable-eng/grpc-web-node-http-transport": "^0.14.0",
"@jmondi/oauth2-server": "^2.6.1",
"@octokit/rest": "18.6.1",
Expand Down
21 changes: 0 additions & 21 deletions components/server/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,6 @@ installCtxLogAugmenter();
installLogCountMetric();

// eslint-disable-next-line @typescript-eslint/no-floating-promises
(async () => {
if (process.env.GOOGLE_CLOUD_PROFILER?.toLocaleLowerCase() !== "true") {
console.log("skipping cloud profiler, not enabled");
return;
}
console.log("starting cloud profiler");

try {
const profiler = await import("@google-cloud/profiler");
// there is no way to stop it: https://github.com/googleapis/cloud-profiler-nodejs/issues/876
// disable google_cloud_profiler and cycle servers
await profiler.start({
serviceContext: {
service: "server",
version: process.env.VERSION,
},
});
} catch (err) {
console.error("failed to start cloud profiler", err);
}
})();

export async function start(container: Container) {
const server = container.get(Server);
Expand Down
Loading
Loading