Skip to content

Commit

Permalink
Fix: Include key in attribute sequence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecotten authored and ocelotl committed Jan 31, 2024
1 parent c4d17e9 commit b36a76c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opentelemetry-api/src/opentelemetry/attributes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ def _clean_attribute(
# Reject attribute value if sequence contains a value with an incompatible type.
if element_type not in _VALID_ATTR_VALUE_TYPES:
_logger.warning(
"Invalid type %s in attribute value sequence. Expected one of "
"Invalid type %s in attribute '%s' value sequence. Expected one of "
"%s or None",
element_type.__name__,
key,
[
valid_type.__name__
for valid_type in _VALID_ATTR_VALUE_TYPES
Expand Down

0 comments on commit b36a76c

Please sign in to comment.