mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 10:36:32 +00:00
cleanup sentry filter
This commit is contained in:
parent
1df35a6fe1
commit
865523fd37
@ -292,24 +292,31 @@ def setup_diagnostics(coresys: CoreSys) -> None:
|
|||||||
return event
|
return event
|
||||||
|
|
||||||
# Update information
|
# Update information
|
||||||
event["contexts"]["supervisor"] = {
|
event.setdefault("extra", {}).update(
|
||||||
"machine": coresys.machine,
|
{
|
||||||
"arch": coresys.arch.default,
|
"supervisor": {
|
||||||
"docker": coresys.docker.info.version,
|
"machine": coresys.machine,
|
||||||
"channel": coresys.updater.channel,
|
"arch": coresys.arch.default,
|
||||||
"supervisor": coresys.supervisor.version,
|
"docker": coresys.docker.info.version,
|
||||||
"os": coresys.hassos.version,
|
"channel": coresys.updater.channel,
|
||||||
"host": coresys.host.info.operating_system,
|
"supervisor": coresys.supervisor.version,
|
||||||
"kernel": coresys.host.info.kernel,
|
"os": coresys.hassos.version,
|
||||||
"core": coresys.homeassistant.version,
|
"host": coresys.host.info.operating_system,
|
||||||
"audio": coresys.plugins.audio.version,
|
"kernel": coresys.host.info.kernel,
|
||||||
"dns": coresys.plugins.dns.version,
|
"core": coresys.homeassistant.version,
|
||||||
"multicast": coresys.plugins.multicast.version,
|
"audio": coresys.plugins.audio.version,
|
||||||
"cli": coresys.plugins.cli.version,
|
"dns": coresys.plugins.dns.version,
|
||||||
}
|
"multicast": coresys.plugins.multicast.version,
|
||||||
event["tags"][
|
"cli": coresys.plugins.cli.version,
|
||||||
"installation_type"
|
}
|
||||||
] = f"{'os' if coresys.hassos.available else 'supervised'}"
|
}
|
||||||
|
)
|
||||||
|
event.setdefault("tags", {}).update(
|
||||||
|
{
|
||||||
|
"installation_type": "os" if coresys.hassos.available else "supervised",
|
||||||
|
"machine": coresys.machine,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
return event
|
return event
|
||||||
|
|
||||||
@ -321,8 +328,7 @@ def setup_diagnostics(coresys: CoreSys) -> None:
|
|||||||
sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
dsn="https://9c6ea70f49234442b4746e447b24747e@o427061.ingest.sentry.io/5370612",
|
dsn="https://9c6ea70f49234442b4746e447b24747e@o427061.ingest.sentry.io/5370612",
|
||||||
before_send=filter_data,
|
before_send=filter_data,
|
||||||
before_breadcrumb=filter_data,
|
max_breadcrumbs=30,
|
||||||
max_breadcrumbs=20,
|
|
||||||
integrations=[AioHttpIntegration(), sentry_logging],
|
integrations=[AioHttpIntegration(), sentry_logging],
|
||||||
release=SUPERVISOR_VERSION,
|
release=SUPERVISOR_VERSION,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user