Browse Source

Revert "ref: add metric when canonical key falls back (#70385)"

This reverts commit 571c43cb11efa53921eb731176cb52b248c924c9.

Co-authored-by: asottile-sentry <103459774+asottile-sentry@users.noreply.github.com>
getsentry-bot 10 months ago
parent
commit
21a2f1cfe5
1 changed files with 1 additions and 8 deletions
  1. 1 8
      src/sentry/utils/canonical.py

+ 1 - 8
src/sentry/utils/canonical.py

@@ -43,14 +43,7 @@ CANONICAL_KEY_MAPPING = {
 
 
 def get_canonical_name(key: str) -> str:
-    rv = CANONICAL_KEY_MAPPING.get(key)
-    if rv is None:
-        return key
-    else:
-        from sentry.utils import metrics
-
-        metrics.incr("canonical-legacy-key")
-        return rv[0]
+    return CANONICAL_KEY_MAPPING.get(key, (key,))[0]
 
 
 class CanonicalKeyView(Mapping[str, V]):