Skip to content

Commit 4b965c4

Browse files
use separate path for streaming
1 parent 064dd83 commit 4b965c4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

sentry_sdk/integrations/asyncpg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def _record(
118118
record_cursor_repr=cursor is not None,
119119
span_origin=AsyncPGIntegration.origin,
120120
) as span:
121-
yield span # type: ignore
121+
yield span
122122

123123

124124
def _wrap_connection_method(

sentry_sdk/integrations/django/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def execute(
641641
executemany=False,
642642
span_origin=DjangoIntegration.origin_db,
643643
) as span:
644-
_set_db_data(span, self) # type: ignore
644+
_set_db_data(span, self)
645645
result = real_execute(self, sql, params)
646646

647647
with capture_internal_exceptions():
@@ -661,7 +661,7 @@ def executemany(
661661
executemany=True,
662662
span_origin=DjangoIntegration.origin_db,
663663
) as span:
664-
_set_db_data(span, self) # type: ignore
664+
_set_db_data(span, self)
665665

666666
result = real_executemany(self, sql, param_list)
667667

0 commit comments

Comments
 (0)