Method: Sentry.clone_hub_to_current_thread
- Defined in:
- lib/sentry-ruby.rb
permalink .clone_hub_to_current_thread ⇒ void
This method returns an undefined value.
Clones the main thread’s active hub and stores it to the current thread.
365 366 367 368 |
# File 'lib/sentry-ruby.rb', line 365 def clone_hub_to_current_thread return unless initialized? Thread.current.thread_variable_set(THREAD_LOCAL, get_main_hub.clone) end |