Skip to content

Commit 80a585a

Browse files
committed
.
1 parent 71a6728 commit 80a585a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sentry_sdk/scope.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -898,13 +898,13 @@ def span(self, span: "Optional[Union[Span, StreamedSpan]]") -> None:
898898
if (
899899
isinstance(span, StreamedSpan)
900900
and not isinstance(span, NoOpStreamedSpan)
901-
and span._is_segment
901+
and span._is_segment()
902902
):
903903
self._transaction = span.name
904904
if span._attributes.get("sentry.span.source"):
905-
self._transaction_info["source"] = span._attributes[
906-
"sentry.span.source"
907-
]
905+
self._transaction_info["source"] = str(
906+
span._attributes["sentry.span.source"]
907+
)
908908

909909
@property
910910
def profile(self) -> "Optional[Profile]":

0 commit comments

Comments
 (0)