Browse Source

add instance ID env var

Syunsuke Komma 2 years ago
parent
commit
50cb8f9c47
1 changed files with 9 additions and 1 deletions
  1. 9 1
      apps/app/src/server/service/config-loader.ts

+ 9 - 1
apps/app/src/server/service/config-loader.ts

@@ -740,7 +740,15 @@ const ENV_VAR_NAME_TO_CONFIG_INFO = {
     ns: 'crowi',
     key: 'instrumentation:enabled',
     type: ValueType.BOOLEAN,
-    default: false,
+    default: true,
+  },
+  // TODO: fix after the decision of the instrumentation data specification
+  // https://redmine.weseek.co.jp/issues/144351
+  OTEL_SERVICE_INSTANCE_ID: {
+    ns: 'crowi',
+    key: 'instrumentation:instanceId',
+    type: ValueType.STRING,
+    default: null,
   },
 };