mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: remove DisableTelemetry check from Profiling initialization
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user