Changed code to support older Python versions
This commit is contained in:
parent
eb92d2d36f
commit
582458cdd0
5027 changed files with 794942 additions and 4 deletions
67
venv/lib/python3.11/site-packages/sentry_sdk/__init__.py
Normal file
67
venv/lib/python3.11/site-packages/sentry_sdk/__init__.py
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
from sentry_sdk import profiler
|
||||
from sentry_sdk import metrics
|
||||
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.consts import VERSION
|
||||
|
||||
__all__ = [ # noqa
|
||||
"Hub",
|
||||
"Scope",
|
||||
"Client",
|
||||
"Transport",
|
||||
"HttpTransport",
|
||||
"VERSION",
|
||||
"integrations",
|
||||
# From sentry_sdk.api
|
||||
"init",
|
||||
"add_attachment",
|
||||
"add_breadcrumb",
|
||||
"capture_event",
|
||||
"capture_exception",
|
||||
"capture_message",
|
||||
"configure_scope",
|
||||
"continue_trace",
|
||||
"flush",
|
||||
"get_baggage",
|
||||
"get_client",
|
||||
"get_global_scope",
|
||||
"get_isolation_scope",
|
||||
"get_current_scope",
|
||||
"get_current_span",
|
||||
"get_traceparent",
|
||||
"is_initialized",
|
||||
"isolation_scope",
|
||||
"last_event_id",
|
||||
"new_scope",
|
||||
"push_scope",
|
||||
"set_context",
|
||||
"set_extra",
|
||||
"set_level",
|
||||
"set_measurement",
|
||||
"set_tag",
|
||||
"set_tags",
|
||||
"set_user",
|
||||
"start_span",
|
||||
"start_transaction",
|
||||
"trace",
|
||||
"monitor",
|
||||
"logger",
|
||||
"metrics",
|
||||
"profiler",
|
||||
"start_session",
|
||||
"end_session",
|
||||
"set_transaction_name",
|
||||
"update_current_span",
|
||||
]
|
||||
|
||||
# Initialize the debug support after everything is loaded
|
||||
from sentry_sdk.debug import init_debug_support
|
||||
|
||||
init_debug_support()
|
||||
del init_debug_support
|
||||
|
||||
# circular imports
|
||||
from sentry_sdk.hub import Hub
|
||||
Loading…
Add table
Add a link
Reference in a new issue