We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 877e47f commit f874407Copy full SHA for f874407
sentry_sdk/metrics.py
@@ -55,7 +55,7 @@
55
56
_in_metrics = ContextVar("in_metrics", default=False)
57
_sanitize_key = partial(re.compile(r"[^a-zA-Z0-9_/.-]+").sub, "_")
58
-_sanitize_value = partial(re.compile(r"[^\w\d_:/@\.{}\[\]$-]+", re.UNICODE).sub, "_")
+_sanitize_value = partial(re.compile(r"[^\w\d_:/@\.{}\[\]$-]+", re.UNICODE).sub, "")
59
_set = set # set is shadowed below
60
61
GOOD_TRANSACTION_SOURCES = frozenset(
tests/test_metrics.py
@@ -822,7 +822,7 @@ def test_tag_normalization(
822
823
assert len(m) == 3
824
assert m[0][4] == {
825
- "foo-bar": "_$foo",
+ "foo-bar": "$foo",
826
"release": "fun-release@1.0.0",
827
"environment": "not-fun-env",
828
}
0 commit comments