Skip to content

Commit 96ebcd2

Browse files
committed
fix
1 parent c5ae89e commit 96ebcd2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

components/gitpod-protocol/src/util/logging.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66

77
import { scrubber } from "./scrubbing";
8-
import * as prometheusClient from "prom-client";
98

109
const inspect: (object: unknown) => string = require("util").inspect; // undefined in frontend
1110

@@ -248,16 +247,7 @@ namespace GoogleLogSeverity {
248247
};
249248
}
250249

251-
const logsCounter = new prometheusClient.Counter({
252-
name: "gitpod_logs_total",
253-
help: "Total number of logs by level",
254-
labelNames: ["level"],
255-
registers: [prometheusClient.register],
256-
});
257-
258250
function doLog(calledViaConsole: boolean, consoleLog: ConsoleLog, severity: GoogleLogSeverity, args: unknown[]): void {
259-
logsCounter.labels(severity).inc();
260-
261251
if (!jsonLogging) {
262252
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
263253
consoleLog(...args);

0 commit comments

Comments
 (0)