mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
fix sentry
This commit is contained in:
parent
e70c9d8a30
commit
1df35a6fe1
@ -292,10 +292,7 @@ def setup_diagnostics(coresys: CoreSys) -> None:
|
||||
return event
|
||||
|
||||
# Update information
|
||||
with sentry_sdk.configure_scope() as scope:
|
||||
scope.set_context(
|
||||
"supervisor",
|
||||
{
|
||||
event["contexts"]["supervisor"] = {
|
||||
"machine": coresys.machine,
|
||||
"arch": coresys.arch.default,
|
||||
"docker": coresys.docker.info.version,
|
||||
@ -309,12 +306,10 @@ def setup_diagnostics(coresys: CoreSys) -> None:
|
||||
"dns": coresys.plugins.dns.version,
|
||||
"multicast": coresys.plugins.multicast.version,
|
||||
"cli": coresys.plugins.cli.version,
|
||||
},
|
||||
)
|
||||
scope.set_tag(
|
||||
"installation_type",
|
||||
f"{'os' if coresys.hassos.available else 'supervised'}",
|
||||
)
|
||||
}
|
||||
event["tags"][
|
||||
"installation_type"
|
||||
] = f"{'os' if coresys.hassos.available else 'supervised'}"
|
||||
|
||||
return event
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user