fix: recursive require in test env

This commit is contained in:
Tom Moor
2023-04-27 22:31:12 -04:00
parent 0f8c444af0
commit ba2bfc7c89
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
import ddMetrics from "datadog-metrics";
import env from "@server/env";
import ShutdownHelper, { ShutdownOrder } from "@server/utils/ShutdownHelper";
class Metrics {
enabled = !!env.DD_API_KEY;
@@ -15,8 +14,6 @@ class Metrics {
prefix: "outline.",
defaultTags: [`env:${process.env.DD_ENV ?? env.ENVIRONMENT}`],
});
ShutdownHelper.add("metrics", ShutdownOrder.last, () => this.flush());
}
gauge(key: string, value: number, tags?: string[]): void {