Skip to content

Commit 49bdbe6

Browse files
committed
Add a __repr__
1 parent 647fa79 commit 49bdbe6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sentry_sdk/traces.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ class NoOpStreamedSpan(StreamedSpan):
255255
def __init__(self) -> None:
256256
pass
257257

258+
def __repr__(self) -> str:
259+
return f"<{self.__class__.__name__}(sampled={self.sampled})>"
260+
258261
def get_attributes(self) -> "Attributes":
259262
return {}
260263

0 commit comments

Comments
 (0)