File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1- from consts import SPANSTATUS
21from typing import TYPE_CHECKING , TypeVar , Union
32
3+ from sentry_sdk .consts import SPANSTATUS
44
55# Re-exported for compat, since code out there in the wild might use this variable.
66MYPY = TYPE_CHECKING
Original file line number Diff line number Diff line change 2222from sentry_sdk .session import Session
2323from sentry_sdk .tracing_utils import (
2424 Baggage ,
25- has_streaming_enabled ,
25+ has_span_streaming_enabled ,
2626 has_tracing_enabled ,
2727 normalize_incoming_data ,
2828 PropagationContext ,
@@ -1126,7 +1126,7 @@ def start_transaction(
11261126
11271127 # we don't bother to keep spans if we already know we're not going to
11281128 # send the transaction or if we're in streaming mode
1129- if not has_streaming_enabled (client .options ):
1129+ if not has_span_streaming_enabled (client .options ):
11301130 max_spans = (client .options ["_experiments" ].get ("max_spans" )) or 1000
11311131 transaction .init_span_recorder (maxlen = max_spans )
11321132
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ class Span:
281281 "name" ,
282282 "_flags" ,
283283 "_flags_capacity" ,
284+ "_mode" ,
284285 )
285286
286287 def __init__ (
You can’t perform that action at this time.
0 commit comments