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 fe3b203 commit 197ebfeCopy full SHA for 197ebfe
opentelemetry-api/src/opentelemetry/attributes/__init__.py
@@ -118,9 +118,9 @@ def _clean_attribute(
118
return None
119
120
121
-def _clean_extended_attribute_value(
+def _clean_extended_attribute_value( # pylint: disable=too-many-branches
122
value: types.AnyValue, max_len: Optional[int]
123
-) -> types.AnyValue: # pylint: disable=too-many-branches
+) -> types.AnyValue:
124
# for primitive types just return the value and eventually shorten the string length
125
if value is None or isinstance(value, _VALID_ATTR_VALUE_TYPES):
126
if max_len is not None and isinstance(value, str):
0 commit comments