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:
Michael Manganiello
2025-08-12 11:18:48 -03:00
parent 92e11beb8b
commit f95e0edff4
2 changed files with 87 additions and 84 deletions

View File

@@ -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