Skip to content

Commit 21a2f1c

Browse files
Revert "ref: add metric when canonical key falls back (#70385)"
This reverts commit 571c43c. Co-authored-by: asottile-sentry <103459774+asottile-sentry@users.noreply.github.com>
1 parent cd47295 commit 21a2f1c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/sentry/utils/canonical.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,7 @@
4343

4444

4545
def get_canonical_name(key: str) -> str:
46-
rv = CANONICAL_KEY_MAPPING.get(key)
47-
if rv is None:
48-
return key
49-
else:
50-
from sentry.utils import metrics
51-
52-
metrics.incr("canonical-legacy-key")
53-
return rv[0]
46+
return CANONICAL_KEY_MAPPING.get(key, (key,))[0]
5447

5548

5649
class CanonicalKeyView(Mapping[str, V]):

0 commit comments

Comments
 (0)