Skip to content

Commit 0824d42

Browse files
committed
small fixes
1 parent ba91268 commit 0824d42

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

sentry_sdk/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from consts import SPANSTATUS
21
from 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.
66
MYPY = TYPE_CHECKING

sentry_sdk/scope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from sentry_sdk.session import Session
2323
from 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

sentry_sdk/tracing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ class Span:
281281
"name",
282282
"_flags",
283283
"_flags_capacity",
284+
"_mode",
284285
)
285286

286287
def __init__(

0 commit comments

Comments
 (0)