mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
feat: Add OpenTelemetry integration to file watcher
Run file watcher using `opentelemetry-instrument` to enable tracing for the watcher service.
This commit is contained in:
@@ -206,7 +206,7 @@ start_bin_watcher() {
|
||||
info_log "Starting watcher"
|
||||
watchfiles \
|
||||
--target-type command \
|
||||
'python3 watcher.py' \
|
||||
"opentelemetry-instrument --service_name '${OTEL_SERVICE_NAME_PREFIX-}watcher' python3 watcher.py" \
|
||||
/romm/library &
|
||||
WATCHER_PID=$!
|
||||
echo "${WATCHER_PID}" >/tmp/watcher.pid
|
||||
|
||||
Reference in New Issue
Block a user