Skip to content

Commit 558daee

Browse files
committed
Merge branch 'master' into potel-base
2 parents a8afb8b + 2bfce50 commit 558daee

File tree

10 files changed

+469
-103
lines changed

10 files changed

+469
-103
lines changed

requirements-testing.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ executing
1010
asttokens
1111
responses
1212
pysocks
13+
socksio
14+
httpcore[http2]
1315
setuptools
14-
freezegun
16+
freezegun

sentry_sdk/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
)
2323
from sentry_sdk.serializer import serialize
2424
from sentry_sdk.tracing import trace
25-
from sentry_sdk.transport import HttpTransport, make_transport
25+
from sentry_sdk.transport import BaseHttpTransport, make_transport
2626
from sentry_sdk.consts import (
2727
DEFAULT_MAX_VALUE_LENGTH,
2828
DEFAULT_OPTIONS,
@@ -378,7 +378,7 @@ def _capture_envelope(envelope):
378378
if (
379379
self.monitor
380380
or has_profiling_enabled(self.options)
381-
or isinstance(self.transport, HttpTransport)
381+
or isinstance(self.transport, BaseHttpTransport)
382382
):
383383
# If we have anything on that could spawn a background thread, we
384384
# need to check if it's safe to use them.

sentry_sdk/consts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class EndpointType(Enum):
5757
"otel_powered_performance": Optional[bool],
5858
"transport_zlib_compression_level": Optional[int],
5959
"transport_num_pools": Optional[int],
60+
"transport_http2": Optional[bool],
6061
},
6162
total=False,
6263
)

0 commit comments

Comments
 (0)