refactor: remove DisableTelemetry check from Profiling initialization

This commit is contained in:
Nawaz Dhandala
2026-03-31 20:18:35 +01:00
parent 675cfa4682
commit 3276ab3641

View File

@@ -1,5 +1,5 @@
import Pyroscope from "@pyroscope/nodejs";
import { DisableTelemetry, EnableProfiling } from "../EnvironmentConfig";
import { EnableProfiling } from "../EnvironmentConfig";
import logger from "./Logger";
export default class Profiling {
@@ -8,10 +8,6 @@ export default class Profiling {
return;
}
if (DisableTelemetry) {
return;
}
const serverAddress: string | undefined = this.getServerAddress();
const authToken: string | undefined = this.getAuthToken();