Skip to content

Commit ec1dd3a

Browse files
committed
bring back description
1 parent af6cc5b commit ec1dd3a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sentry_sdk/tracing.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,20 @@ def __exit__(self, ty, value, tb):
399399
context.detach(self._ctx_token)
400400
del self._ctx_token
401401

402+
@property
403+
def description(self):
404+
# type: () -> Optional[str]
405+
from sentry_sdk.integrations.opentelemetry.consts import SentrySpanAttribute
406+
407+
return self.get_attribute(SentrySpanAttribute.DESCRIPTION)
408+
409+
@description.setter
410+
def description(self, value):
411+
# type: (Optional[str]) -> None
412+
from sentry_sdk.integrations.opentelemetry.consts import SentrySpanAttribute
413+
414+
self.set_attribute(SentrySpanAttribute.DESCRIPTION, value)
415+
402416
@property
403417
def origin(self):
404418
# type: () -> Optional[str]

0 commit comments

Comments
 (0)