diff --git a/opentelemetry-sdk/tests/resources/test_resources.py b/opentelemetry-sdk/tests/resources/test_resources.py index 19499fe240a..c9649f685ad 100644 --- a/opentelemetry-sdk/tests/resources/test_resources.py +++ b/opentelemetry-sdk/tests/resources/test_resources.py @@ -19,6 +19,7 @@ import uuid from logging import ERROR from unittest import mock +from urllib import parse from opentelemetry.sdk import resources @@ -501,6 +502,15 @@ def test_multiple_with_url_decode(self): detector.detect(), resources.Resource({"key": "value test\n", "key2": "value+ 2"}), ) + self.assertEqual( + detector.detect(), + resources.Resource( + { + "key": parse.unquote("value%20test%0A"), + "key2": parse.unquote("value+%202"), + } + ), + ) @mock.patch.dict( os.environ,