Method: NewRelic::ThreadLocalStorage.set

Defined in:
lib/new_relic/thread_local_storage.rb

.set(thread, key, value) ⇒ Object

[View source]

15
16
17
18
19
20
21
# File 'lib/new_relic/thread_local_storage.rb', line 15

def self.set(thread, key, value)
  if Agent.config[:thread_local_tracer_state]
    thread.thread_variable_set(key, value)
  else
    thread[key] = value
  end
end