getRecorder returns the current global recorder under a read lock.
()
| 149 | |
| 150 | // getRecorder returns the current global recorder under a read lock. |
| 151 | func getRecorder() Recorder { |
| 152 | recorderMu.RLock() |
| 153 | r := globalRecorder |
| 154 | recorderMu.RUnlock() |
| 155 | return r |
| 156 | } |
| 157 | |
| 158 | // SetGlobalRecorder sets the global recorder (called by Init() in extra/redisotel-native) |
| 159 | func SetGlobalRecorder(r Recorder) { |
no outgoing calls
no test coverage detected