From 88cc38394ed6bdaddd73b1c92a9474883c39edbb Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 6 Jun 2021 14:51:43 +0200 Subject: [PATCH] root: improve sentry tags to simplify queries Signed-off-by: Jens Langhammer --- authentik/root/settings.py | 6 +++--- web/src/api/Sentry.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/authentik/root/settings.py b/authentik/root/settings.py index 99d0b0f6f..7848a5703 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -374,11 +374,11 @@ if _ERROR_REPORTING: environment=CONFIG.y("error_reporting.environment", "customer"), send_default_pii=CONFIG.y_bool("error_reporting.send_pii", False), ) - set_tag("authentik:build_hash", os.environ.get(ENV_GIT_HASH_KEY, "tagged")) + set_tag("authentik.build_hash", os.environ.get(ENV_GIT_HASH_KEY, "tagged")) set_tag( - "authentik:env", "kubernetes" if "KUBERNETES_PORT" in os.environ else "compose" + "authentik.env", "kubernetes" if "KUBERNETES_PORT" in os.environ else "compose" ) - set_tag("authentik:component", "backend") + set_tag("authentik.component", "backend") j_print( "Error reporting is enabled", env=CONFIG.y("error_reporting.environment", "customer"), diff --git a/web/src/api/Sentry.ts b/web/src/api/Sentry.ts index 6668d862c..69807097d 100644 --- a/web/src/api/Sentry.ts +++ b/web/src/api/Sentry.ts @@ -6,7 +6,7 @@ import { me } from "./Users"; import { config } from "./Config"; import { Config } from "authentik-api"; -export const TAG_SENTRY_COMPONENT = "authentik:component"; +export const TAG_SENTRY_COMPONENT = "authentik.component"; export function configureSentry(canDoPpi: boolean = false, tags: { [key: string]: string; } = {}): Promise { return config().then((config) => {