We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1b61ee commit 5616fa2Copy full SHA for 5616fa2
.env.example
@@ -1,5 +1,5 @@
1
PORT=8080
2
-LOG_LEVEL="debug"
+LOG_LEVEL="info"
3
CORS_ORIGIN="*"
4
5
PG_CONN="postgres://postgres:password@localhost:5432/archive"
src/server.ts
@@ -30,6 +30,7 @@ function initJaegerProvider() {
30
}
31
32
// Check if Jaeger endpoint is available.
33
+ // eslint-disable-next-line prefer-const
34
let [hostname, port] = process.env.JAEGER_ENDPOINT.replace(
35
'http://',
36
''
@@ -56,8 +57,7 @@ function buildPlugins() {
56
57
const plugins = [];
58
59
plugins.push(useGraphQlJit());
-
60
- if (process.env.ENABLE_LOGGING === 'true') {
+ if (process.env.ENABLE_LOGGING) {
61
const provider = initJaegerProvider();
62
plugins.push(
63
useOpenTelemetry(
0 commit comments