Module: Gitlab::Instrumentation::RedisPayload

Includes:
Utils::StrongMemoize
Included in:
Redis, RedisBase
Defined in:
lib/gitlab/instrumentation/redis_payload.rb

Instance Method Summary collapse

Methods included from Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Instance Method Details

#payloadObject


8
9
10
11
12
13
# File 'lib/gitlab/instrumentation/redis_payload.rb', line 8

def payload
  to_lazy_payload.transform_values do |value|
    result = value.call
    result if result > 0
  end.compact
end