Remove retarded build time variables
All checks were successful
CI / test (push) Successful in 54s
CI / test-analytics (push) Successful in 2m2s
CI / build-api (push) Successful in 3m1s
CI / build-frontend (push) Successful in 1m58s
CI / build-analytics (push) Successful in 41s

This commit is contained in:
2026-05-11 17:00:17 +02:00
parent 5cbc1d50fd
commit b1de6284f7
12 changed files with 65 additions and 59 deletions

View File

@@ -76,21 +76,28 @@ APP_ENV=prod
LOG_LEVEL=INFO
# -----------------------------------------------------------------------------
# Frontend (otel-bi-frontend) → frontend/
# Baked into the image at build time via Docker build-args.
# In Docker Compose these are passed as build args, not runtime env.
# For local dev copy frontend/.env.example to frontend/.env.local instead.
# -----------------------------------------------------------------------------
VITE_API_BASE_URL=http://localhost:8000
VITE_OTEL_COLLECTOR_ENDPOINT=http://alloy:4318
VITE_OTEL_SERVICE_NAME=otel-bi-frontend
VITE_OTEL_SERVICE_NAMESPACE=final-thesis
# -----------------------------------------------------------------------------
# OpenTelemetry — shared collector endpoint
# Same value goes to Go analytics, Python API, and frontend build arg above
# Used by Go analytics + Python API for their own trace/metric export.
# In-cluster K8s DNS for Alloy.
# -----------------------------------------------------------------------------
OTEL_COLLECTOR_ENDPOINT=http://alloy:4318
OTEL_SERVICE_NAMESPACE=final-thesis
# -----------------------------------------------------------------------------
# Frontend telemetry — served to the SPA via GET /api/config.
# These are the values the browser-side OTel SDK uses; the SPA reads them at
# runtime so a single frontend image works across all environments.
# -----------------------------------------------------------------------------
# Browser-reachable OTLP endpoint. Distinct from OTEL_COLLECTOR_ENDPOINT
# because the browser can't reach in-cluster service DNS.
# Default `/otel` assumes Ingress routes `/otel/v1/traces` → alloy:4318.
# Set to an absolute URL (e.g. https://alloy.example.com) if exposing the
# collector on its own host instead.
FRONTEND_OTEL_COLLECTOR_ENDPOINT=/otel
# OTel resource attributes for the frontend service
FRONTEND_OTEL_SERVICE_NAME=otel-bi-frontend
FRONTEND_OTEL_SERVICE_NAMESPACE=final-thesis
FRONTEND_DEPLOYMENT_ENVIRONMENT=production