File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/opentelemetry/attributes Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,10 @@ def _clean_extended_attribute_value(
157157
158158 element_type = type (element )
159159 if element_type not in _VALID_ATTR_VALUE_TYPES :
160- return _clean_extended_attribute_value (
160+ element = _clean_extended_attribute_value (
161161 element , max_len = max_len
162162 )
163+ element_type = type (element )
163164
164165 # The type of the sequence must be homogeneous. The first non-None
165166 # element determines the type of the sequence
Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ def test_clean_extended_attribute(self):
139139 # mappings
140140 self .assertValid ({})
141141 self .assertValid ({"k" : "v" })
142+ # mappings in sequences
143+ self .assertValid ([{"k" : "v" }])
142144
143145 # test keys
144146 self .assertValid ("value" , "key" )
You can’t perform that action at this time.
0 commit comments