__init__.py 1.4 KB

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