From 6ff95ded022c8a68e9a12098dbeb6ae4f6dae06f Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Wed, 21 Aug 2024 21:56:40 -0400 Subject: [PATCH] OTEL Dataset --- backend/controllers/systems.js | 1 + docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/controllers/systems.js b/backend/controllers/systems.js index 1d83c3b..f8e4762 100644 --- a/backend/controllers/systems.js +++ b/backend/controllers/systems.js @@ -146,6 +146,7 @@ async function load_systems(systemClients) { exports.get_systems = async function (req, res) { if ((systemList.length == 0) || (systemListTime < (Date.now() - 60 * 1000 * 15))) { await load_systems(req.systemClients); + console.log("System List Loaded - total: " + systemList.length); systemListTime = Date.now(); } diff --git a/docker-compose.yml b/docker-compose.yml index 275b978..798232d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -63,7 +63,7 @@ services: image: "backend:${TAG}-${STAGE}" pid: "host" environment: - - OTEL_SERVICE_NAME="test" + - OTEL_SERVICE_NAME="prod" - OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" - OTEL_EXPORTER_OTLP_ENDPOINT="https://api.honeycomb.io:443" - OTEL_EXPORTER_OTLP_HEADERS="x-honeycomb-team=${HONEYCOMB_API_KEY}"