mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
When OTEL_SDK_DISABLED=true (set automatically when no OTEL_ env vars are present), the opentelemetry-instrument wrapper does not properly pass through the WATCHFILES_CHANGES environment variable to watcher.py. This causes the filesystem watcher to silently fail - watchfiles detects changes but watcher.py receives an empty WATCHFILES_CHANGES and exits immediately without scheduling any rescans. The fix skips the opentelemetry-instrument wrapper when OTEL is disabled, allowing watchfiles to pass WATCHFILES_CHANGES directly to watcher.py. Fixes automatic rescan on filesystem change for users who don't configure OpenTelemetry (the majority of self-hosted deployments).