diff options
author | Eric Eastwood <erice@element.io> | 2022-07-27 12:52:10 -0500 |
---|---|---|
committer | Eric Eastwood <erice@element.io> | 2022-07-27 12:52:10 -0500 |
commit | 0d7a2b93cfae0108c33462d2111b5a64de1cf7cc (patch) | |
tree | f9055a7ea0f902d31a1c721bdd0d97b0b94664ad | |
parent | Export to Jaeger (things are showing up) (diff) | |
download | synapse-0d7a2b93cfae0108c33462d2111b5a64de1cf7cc.tar.xz |
Revert changes to Sentry scopes (not OTEL)
See https://github.com/matrix-org/synapse/pull/13400#discussion_r931325627
-rw-r--r-- | synapse/app/_base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/app/_base.py b/synapse/app/_base.py index 46bddf8162..5763352b29 100644 --- a/synapse/app/_base.py +++ b/synapse/app/_base.py @@ -549,7 +549,7 @@ def setup_sentry(hs: "HomeServer") -> None: # We set some default tags that give some context to this instance with sentry_sdk.configure_scope() as scope: - scope.set_attribute("matrix_server_name", hs.config.server.server_name) + scope.set_tag("matrix_server_name", hs.config.server.server_name) app = ( hs.config.worker.worker_app @@ -557,8 +557,8 @@ def setup_sentry(hs: "HomeServer") -> None: else "synapse.app.homeserver" ) name = hs.get_instance_name() - scope.set_attribute("worker_app", app) - scope.set_attribute("worker_name", name) + scope.set_tag("worker_app", app) + scope.set_tag("worker_name", name) def setup_sdnotify(hs: "HomeServer") -> None: |