sentry improvements (#23627)

* sentry: filter out unregistered devices and PC

* add daemon name
old-commit-hash: 8b5b0ae3415e1ea44a1eecb6e70cec16b0fb1565
This commit is contained in:
Adeeb Shihadeh
2022-01-26 11:44:10 -08:00
committed by GitHub
parent 6101a6caca
commit eac8bd839a
3 changed files with 15 additions and 3 deletions
+2 -1
View File
@@ -34,8 +34,9 @@ def launcher(proc: str, name: str) -> None:
# create new context since we forked
messaging.context = messaging.Context()
# add daemon name to cloudlog ctx
# add daemon name tag to logs
cloudlog.bind(daemon=name)
sentry.set_tag("daemon", name)
# exec the process
getattr(mod, 'main')()