11from sentry_sdk ._types import MYPY
22
33if MYPY :
4+ import sentry_sdk
5+
46 from typing import Optional
57 from typing import Callable
68 from typing import Union
1113 from typing import Sequence
1214 from typing_extensions import TypedDict
1315
14- from sentry_sdk .transport import Transport
1516 from sentry_sdk .integrations import Integration
1617
1718 from sentry_sdk ._types import (
3637 total = False ,
3738 )
3839
40+ DEFAULT_QUEUE_SIZE = 100
3941DEFAULT_MAX_BREADCRUMBS = 100
4042
4143
@@ -56,7 +58,8 @@ def __init__(
5658 in_app_exclude = [], # type: List[str] # noqa: B006
5759 default_integrations = True , # type: bool
5860 dist = None , # type: Optional[str]
59- transport = None , # type: Optional[Union[Transport, Type[Transport], Callable[[Event], None]]]
61+ transport = None , # type: Optional[Union[sentry_sdk.transport.Transport, Type[sentry_sdk.transport.Transport], Callable[[Event], None]]]
62+ transport_queue_size = DEFAULT_QUEUE_SIZE , # type: int
6063 sample_rate = 1.0 , # type: float
6164 send_default_pii = False , # type: bool
6265 http_proxy = None , # type: Optional[str]
0 commit comments