| Server IP : 101.53.144.229 / Your IP : 216.73.216.181 Web Server : Apache System : Linux host.gdigitalindia.in 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : digitalshiksha ( 1179) PHP Version : 5.6.40 Disable Function : eval,show_source,system,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,dl,show_source,curl_multi_exechellcmd, ini_restore,apache_get_modules,get_cfg_var,passthru, exec ,proc_get_status,fpassthru,c999_buff_prepare,c999_sess_put,c99_buff_prepare,c99_sess_put,proc_close,ini_alter,dl,symlink,link,proc_close,ini_alter,dl,symlink,link,mail MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/cwd/c1/1/opt/alt/python35/lib/python3.5/site-packages/sentry_sdk/ |
Upload File : |
"""
The Sentry SDK is the new-style SDK for [sentry.io](https://sentry.io/). It implements
the unified API that all modern SDKs follow for Python 2.7 and 3.5 or later.
The user documentation can be found on [docs.sentry.io](https://docs.sentry.io/).
## Quickstart
The only thing to get going is to call `sentry_sdk.init()`. When not passed any
arguments the default options are used and the DSN is picked up from the `SENTRY_DSN`
environment variable. Otherwise the DSN can be passed with the `dsn` keyword
or first argument.
import sentry_sdk
sentry_sdk.init()
This initializes the default integrations which will automatically pick up any
uncaught exceptions. Additionally you can report arbitrary other exceptions:
try:
my_failing_function()
except Exception as e:
sentry_sdk.capture_exception(e)
"""
from sentry_sdk.hub import Hub, init
from sentry_sdk.scope import Scope
from sentry_sdk.transport import Transport, HttpTransport
from sentry_sdk.client import Client
from sentry_sdk.api import * # noqa
from sentry_sdk.api import __all__ as api_all
from sentry_sdk.consts import VERSION # noqa
__all__ = api_all + [ # noqa
"Hub",
"Scope",
"Client",
"Transport",
"HttpTransport",
"init",
"integrations",
]
# Initialize the debug support after everything is loaded
from sentry_sdk.debug import init_debug_support
init_debug_support()
del init_debug_support