Remove retarded build time variables
This commit is contained in:
33
.env.example
33
.env.example
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user