diff --git a/opentelemetry-api/src/opentelemetry/trace/span.py b/opentelemetry-api/src/opentelemetry/trace/span.py index 84626cee387..bc10a633195 100644 --- a/opentelemetry-api/src/opentelemetry/trace/span.py +++ b/opentelemetry-api/src/opentelemetry/trace/span.py @@ -207,10 +207,14 @@ def is_valid(self) -> bool: return self[5] def __setattr__(self, *args: str) -> None: - _logger.warning("This method has been deprecated: SpanContext is immutable.") + _logger.debug( + "Immutable type, ignoring call to set attribute", stack_info=True + ) def __delattr__(self, *args: str) -> None: - _logger.warning("This method has been deprecated: SpanContext is immutable.") + _logger.debug( + "Immutable type, ignoring call to set attribute", stack_info=True + ) def __repr__(self) -> str: return (