forked from getsentry/sentry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsts.py
More file actions
87 lines (79 loc) · 2.47 KB
/
Copy pathconsts.py
File metadata and controls
87 lines (79 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import socket
MYPY = False
if MYPY:
from mypy_extensions import TypedDict
from typing import Optional
from typing import Callable
from typing import Union
from typing import List
from typing import Type
from sentry_sdk.transport import Transport
from sentry_sdk.integrations import Integration
from sentry_sdk.utils import Event, EventProcessor, BreadcrumbProcessor
ClientOptions = TypedDict(
"ClientOptions",
{
"dsn": Optional[str],
"with_locals": bool,
"max_breadcrumbs": int,
"release": Optional[str],
"environment": Optional[str],
"server_name": Optional[str],
"shutdown_timeout": int,
"integrations": List[Integration],
"in_app_include": List[str],
"in_app_exclude": List[str],
"default_integrations": bool,
"dist": Optional[str],
"transport": Optional[
Union[Transport, Type[Transport], Callable[[Event], None]]
],
"sample_rate": int,
"send_default_pii": bool,
"http_proxy": Optional[str],
"https_proxy": Optional[str],
"ignore_errors": List[Union[type, str]],
"request_bodies": str,
"before_send": Optional[EventProcessor],
"before_breadcrumb": Optional[BreadcrumbProcessor],
"debug": bool,
"attach_stacktrace": bool,
"ca_certs": Optional[str],
"propagate_traces": bool,
},
total=False,
)
VERSION = "0.9.2"
DEFAULT_SERVER_NAME = socket.gethostname() if hasattr(socket, "gethostname") else None
DEFAULT_OPTIONS = {
"dsn": None,
"with_locals": True,
"max_breadcrumbs": 100,
"release": None,
"environment": None,
"server_name": DEFAULT_SERVER_NAME,
"shutdown_timeout": 2.0,
"integrations": [],
"in_app_include": [],
"in_app_exclude": [],
"default_integrations": True,
"dist": None,
"transport": None,
"sample_rate": 1.0,
"send_default_pii": False,
"http_proxy": None,
"https_proxy": None,
"ignore_errors": [],
"request_bodies": "medium",
"before_send": None,
"before_breadcrumb": None,
"debug": False,
"attach_stacktrace": False,
"ca_certs": None,
"propagate_traces": True,
}
SDK_INFO = {
"name": "sentry.python",
"version": VERSION,
"packages": [{"name": "pypi:sentry-sdk", "version": VERSION}],
}