lib/honeycomb/integrations/redis.rb in honeycomb-beeline-1.3.0 vs lib/honeycomb/integrations/redis.rb in honeycomb-beeline-2.0.0
- old
+ new
@@ -21,10 +21,12 @@
# Redis.honeycomb_client = nil
module Configuration
attr_writer :honeycomb_client
def honeycomb_client
- @honeycomb_client || Honeycomb.client
+ return @honeycomb_client if defined?(@honeycomb_client)
+
+ Honeycomb.client
end
end
# Patches Redis::Client with Honeycomb instrumentation.
#