From 57c795bfe59e204d6832ba3c85d432cb811815a9 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Thu, 4 Jun 2020 10:36:02 -0700 Subject: [PATCH] Bind role tag --- backend/atlas/settings.py | 2 ++ frontend/src/index.js | 1 + 2 files changed, 3 insertions(+) diff --git a/backend/atlas/settings.py b/backend/atlas/settings.py index 1b89090..384661b 100644 --- a/backend/atlas/settings.py +++ b/backend/atlas/settings.py @@ -39,6 +39,8 @@ traces_sample_rate=1.0, _experiments={"fast_serialize": True, "auto_enabling_integrations": True}, ) +with sentry_sdk.configure_scope() as scope: + scope.set_tag("role", "backend") LOGGING = { "version": 1, diff --git a/frontend/src/index.js b/frontend/src/index.js index 19ee916..9cdf885 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -25,6 +25,7 @@ Sentry.init({ new SentryRRWeb() ] }); +Sentry.setTag("role", "frontend"); // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this comes with some pitfalls.