mirror of
https://github.com/rommapp/romm.git
synced 2026-06-27 22:35:57 +00:00
Collapse the duplicated OTEL_SDK_DISABLED / opentelemetry-instrument branches in run_startup, start_bin_gunicorn, start_bin_watcher, and start_bin_sync_watcher into two small helpers: - otel_prefix: emits the wrapper as NUL-delimited argv tokens (for direct process invocation). - otel_prefix_str: emits the wrapper as a shell-string prefix (for embedding inside `watchfiles --target-type command`). Each call site becomes a single command instead of a 2- or 3-way branch with a fully duplicated command body. As a side effect, the watcher functions now also gain the `command -v opentelemetry-instrument` fallback that the gunicorn/startup paths added.