Skip to content

Commit c1939d3

Browse files
committed
Merge branch 'master' into feat/span-first
2 parents 78bc646 + 39cf94d commit c1939d3

File tree

18 files changed

+2330
-721
lines changed

18 files changed

+2330
-721
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
token: ${{ steps.token.outputs.token }}
3232
fetch-depth: 0
3333
- name: Prepare release
34-
uses: getsentry/craft@d4cfac9d25d1fc72c9241e5d22aff559a114e4e9 # v2
34+
uses: getsentry/craft@013a7b2113c2cac0ff32d5180cfeaefc7c9ce5b6 # v2
3535
env:
3636
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3737
with:

scripts/populate_tox/package_dependencies.jsonl

Lines changed: 11 additions & 11 deletions
Large diffs are not rendered by default.

scripts/populate_tox/releases.jsonl

Lines changed: 22 additions & 23 deletions
Large diffs are not rendered by default.

sentry_sdk/ai/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -531,12 +531,12 @@ def normalize_message_roles(messages: "list[dict[str, Any]]") -> "list[dict[str,
531531

532532

533533
def get_start_span_function() -> "Callable[..., Any]":
534-
client = sentry_sdk.get_client()
534+
if has_span_streaming_enabled(sentry_sdk.get_client().options):
535+
return sentry_sdk.traces.start_span
535536

536537
current_span = sentry_sdk.get_current_span()
537-
if isinstance(current_span, StreamedSpan) or has_span_streaming_enabled(
538-
client.options
539-
):
538+
if isinstance(current_span, StreamedSpan):
539+
# mypy
540540
return sentry_sdk.traces.start_span
541541

542542
transaction_exists = (

sentry_sdk/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from sentry_sdk._init_implementation import init
77
from sentry_sdk.consts import INSTRUMENTER
88
from sentry_sdk.scope import Scope, _ScopeManager, new_scope, isolation_scope
9-
from sentry_sdk.tracing import NoOpSpan, Transaction, trace
109
from sentry_sdk.traces import StreamedSpan
10+
from sentry_sdk.tracing import NoOpSpan, Transaction, trace
1111
from sentry_sdk.crons import monitor
1212

1313
from typing import TYPE_CHECKING
@@ -38,6 +38,7 @@
3838
LogLevelStr,
3939
SamplingContext,
4040
)
41+
from sentry_sdk.traces import StreamedSpan
4142
from sentry_sdk.tracing import Span, TransactionKwargs
4243

4344
T = TypeVar("T")

0 commit comments

Comments
 (0)