feat(observability): integrate OpenTelemetry collector and configuration for enhanced telemetry

This commit is contained in:
Anish Sarkar 2026-05-23 00:17:23 +05:30
parent 51e4d8b489
commit df698e0216
6 changed files with 160 additions and 7 deletions

View file

@ -304,6 +304,28 @@ STT_SERVICE=local/base
# LANGSMITH_API_KEY=
# LANGSMITH_PROJECT=surfsense
# OpenTelemetry traces and metrics.
# Enable the collector with: docker compose --profile observability up -d
# SURFSENSE_ENABLE_OTEL=true
# OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317
# OTEL_EXPORTER_OTLP_PROTOCOL=grpc
# OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=production,service.namespace=surfsense
#
# Emergency kill switch.
# OTEL_SDK_DISABLED=true
#
# Grafana Cloud OTLP credentials. These are used only by the collector container.
# GRAFANA_CLOUD_OTLP_ENDPOINT=https://otlp-gateway-<region>.grafana.net/otlp
# GRAFANA_CLOUD_INSTANCE_ID=
# GRAFANA_CLOUD_API_KEY=
#
# Optional host port overrides for the bundled OTel Collector. Only change
# these if the host already uses 4317/4318/13133; backend containers still use
# the internal Docker endpoint above.
# OTEL_GRPC_PORT=4317
# OTEL_HTTP_PORT=4318
# OTEL_HEALTH_PORT=13133
# ------------------------------------------------------------------------------
# Advanced (optional)
# ------------------------------------------------------------------------------