Skip to content

Commit 13a67e6

Browse files
committed
Fix: Include key in attribute sequence warning
1 parent 975733c commit 13a67e6

File tree

1 file changed

+2
-1
lines changed
  • opentelemetry-api/src/opentelemetry/attributes

1 file changed

+2
-1
lines changed

opentelemetry-api/src/opentelemetry/attributes/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ def _clean_attribute(
6868
# Reject attribute value if sequence contains a value with an incompatible type.
6969
if element_type not in _VALID_ATTR_VALUE_TYPES:
7070
_logger.warning(
71-
"Invalid type %s in attribute value sequence. Expected one of "
71+
"Invalid type %s in attribute '%s' value sequence. Expected one of "
7272
"%s or None",
7373
element_type.__name__,
74+
key,
7475
[
7576
valid_type.__name__
7677
for valid_type in _VALID_ATTR_VALUE_TYPES

0 commit comments

Comments
 (0)