Returns the main thread’s active hub.
Returns:
318 319 320 321 322 323
# File 'lib/sentry-ruby.rb', line 318 def get_main_hub MUTEX.synchronize { @main_hub } rescue ThreadError # In some rare cases this may be called in a trap context so we need to handle it gracefully @main_hub end