__init__.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. from sentry_sdk import profiler
  2. from sentry_sdk.scope import Scope
  3. from sentry_sdk.transport import Transport, HttpTransport
  4. from sentry_sdk.client import Client
  5. from sentry_sdk.api import * # noqa
  6. from sentry_sdk.consts import VERSION
  7. __all__ = [ # noqa
  8. "Hub",
  9. "Scope",
  10. "Client",
  11. "Transport",
  12. "HttpTransport",
  13. "VERSION",
  14. "integrations",
  15. # From sentry_sdk.api
  16. "init",
  17. "add_attachment",
  18. "add_breadcrumb",
  19. "capture_event",
  20. "capture_exception",
  21. "capture_message",
  22. "configure_scope",
  23. "continue_trace",
  24. "flush",
  25. "get_baggage",
  26. "get_client",
  27. "get_global_scope",
  28. "get_isolation_scope",
  29. "get_current_scope",
  30. "get_current_span",
  31. "get_traceparent",
  32. "is_initialized",
  33. "isolation_scope",
  34. "last_event_id",
  35. "new_scope",
  36. "push_scope",
  37. "set_context",
  38. "set_extra",
  39. "set_level",
  40. "set_measurement",
  41. "set_tag",
  42. "set_tags",
  43. "set_user",
  44. "start_span",
  45. "start_transaction",
  46. "trace",
  47. "monitor",
  48. "logger",
  49. "profiler",
  50. "start_session",
  51. "end_session",
  52. "set_transaction_name",
  53. "update_current_span",
  54. ]
  55. # Initialize the debug support after everything is loaded
  56. from sentry_sdk.debug import init_debug_support
  57. init_debug_support()
  58. del init_debug_support
  59. # circular imports
  60. from sentry_sdk.hub import Hub