feat(env): add SURFSENSE_ENV variable for deployment environment and update observability resource attributes

This commit is contained in:
Anish Sarkar 2026-05-23 02:13:24 +05:30
parent df698e0216
commit 4c8d47617d
4 changed files with 26 additions and 9 deletions

View file

@ -1,5 +1,8 @@
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/surfsense
# Deployment environment: dev or production
SURFSENSE_ENV=dev
#Celery Config
CELERY_BROKER_URL=redis://localhost:6379/0
CELERY_RESULT_BACKEND=redis://localhost:6379/0
@ -310,7 +313,7 @@ LANGSMITH_PROJECT=surfsense
# use http://otel-lgtm:4317 instead.
# OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317
# OTEL_EXPORTER_OTLP_PROTOCOL=grpc # or http/protobuf
# OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=production,service.namespace=surfsense
# OTEL_RESOURCE_ATTRIBUTES=service.namespace=surfsense
# OTEL_METRIC_EXPORT_INTERVAL=300000 # ms; 5 minutes
# OTEL_SDK_DISABLED=true # emergency kill-switch