REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.82 KB
Close
//opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/api.py
Text
Base64
import inspect from contextlib import contextmanager from sentry_sdk.hub import Hub from sentry_sdk.scope import Scope if False: from typing import Any from typing import Optional from typing import overload from typing import Callable from typing import Dict from contextlib import ContextManager else: def overload(x): return x __all__ = [] def public(f): __all__.append(f.__name__) return f def hubmethod(f): f.__doc__ = "%s\n\n%s" % ( "Alias for `Hub.%s`" % f.__name__, inspect.getdoc(getattr(Hub, f.__name__)), ) return public(f) @hubmethod def capture_event(event, hint=None): # type: (Dict[str, Any], Dict[str, Any]) -> Optional[str] hub = Hub.current if hub is not None: return hub.capture_event(event, hint) return None @hubmethod def capture_message(message, level=None): # type: (str, Optional[Any]) -> Optional[str] hub = Hub.current if hub is not None: return hub.capture_message(message, level) return None @hubmethod def capture_exception(error=None): # type: (Optional[BaseException]) -> Optional[str] hub = Hub.current if hub is not None: return hub.capture_exception(error) return None @hubmethod def add_breadcrumb(crumb=None, hint=None, **kwargs): # type: (Dict[str, Any], Dict[str, Any], **Any) -> None hub = Hub.current if hub is not None: return hub.add_breadcrumb(crumb, hint, **kwargs) @overload # noqa def configure_scope(): # type: () -> ContextManager[Scope] pass @overload # noqa def configure_scope(callback): # type: (Callable[[Scope], None]) -> None pass @hubmethod # noqa def configure_scope(callback=None): hub = Hub.current if hub is not None: return hub.configure_scope(callback) elif callback is None: @contextmanager def inner(): yield Scope() return inner() else: # returned if user provided callback return None @overload # noqa def push_scope(): # type: () -> ContextManager[Scope] pass @overload # noqa def push_scope(callback): # type: (Callable[[Scope], None]) -> None pass @hubmethod # noqa def push_scope(callback=None): hub = Hub.current if hub is not None: return hub.push_scope(callback) elif callback is None: @contextmanager def inner(): yield Scope() return inner() else: # returned if user provided callback return None @hubmethod def flush(timeout=None, callback=None): hub = Hub.current if hub is not None: return hub.flush(timeout=timeout, callback=callback) @hubmethod def last_event_id(): # type: () -> Optional[str] hub = Hub.current if hub is not None: return hub.last_event_id() return None
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
integrations
DIR
-
drwxr-xr-x
2024-03-21 10:24:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__pycache__
DIR
-
drwxr-xr-x
2024-03-21 10:24:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
api.py
2.82 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
client.py
8.40 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
consts.py
2.21 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
debug.py
1.01 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
hub.py
12.72 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
scope.py
7.02 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
transport.py
6.79 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils.py
26.92 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
worker.py
3.47 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
_compat.py
2.17 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
1.40 KB
lrw-r--r--
2019-04-05 23:15:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).