Skip to content

Commit 2701445

Browse files
authored
Document None attribute values as undefined behavior (open-telemetry#1361)
1 parent c47815d commit 2701445

File tree

1 file changed

+2
-0
lines changed
  • opentelemetry-api/src/opentelemetry/trace

1 file changed

+2
-0
lines changed

opentelemetry-api/src/opentelemetry/trace/span.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def set_attribute(self, key: str, value: types.AttributeValue) -> None:
3838
"""Sets an Attribute.
3939
4040
Sets a single Attribute with the key and value passed as arguments.
41+
42+
Note: The behavior of `None` value attributes is undefined, and hence strongly discouraged.
4143
"""
4244

4345
@abc.abstractmethod

0 commit comments

Comments
 (0)