Method: NewRelic::ThreadLocalStorage.get

Defined in:
lib/new_relic/thread_local_storage.rb

.get(thread, key) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/new_relic/thread_local_storage.rb', line 7

def self.get(thread, key)
  if Agent.config[:thread_local_tracer_state]
    thread.thread_variable_get(key)
  else
    thread[key]
  end
end