1
1
from sentry_sdk ._types import MYPY
2
2
3
3
if MYPY :
4
+ import sentry_sdk
5
+
4
6
from typing import Optional
5
7
from typing import Callable
6
8
from typing import Union
11
13
from typing import Sequence
12
14
from typing_extensions import TypedDict
13
15
14
- from sentry_sdk .transport import Transport
15
16
from sentry_sdk .integrations import Integration
16
17
17
18
from sentry_sdk ._types import (
36
37
total = False ,
37
38
)
38
39
40
+ DEFAULT_QUEUE_SIZE = 100
39
41
DEFAULT_MAX_BREADCRUMBS = 100
40
42
41
43
@@ -56,7 +58,8 @@ def __init__(
56
58
in_app_exclude = [], # type: List[str] # noqa: B006
57
59
default_integrations = True , # type: bool
58
60
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
60
63
sample_rate = 1.0 , # type: float
61
64
send_default_pii = False , # type: bool
62
65
http_proxy = None , # type: Optional[str]
0 commit comments