MCPcopy
hub / github.com/redis/go-redis / getRecorder

Function getRecorder

internal/otel/metrics.go:151–156  ·  view source on GitHub ↗

getRecorder returns the current global recorder under a read lock.

()

Source from the content-addressed store, hash-verified

149
150// getRecorder returns the current global recorder under a read lock.
151func 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)
159func SetGlobalRecorder(r Recorder) {

Callers 6

SetGlobalRecorderFunction · 0.85
RecordOperationDurationFunction · 0.85
RecordPubSubMessageFunction · 0.85
RecordStreamLagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected