lib/instana/snapshot/docker_container.rb in instana-1.200.0.pre1 vs lib/instana/snapshot/docker_container.rb in instana-1.200.0
- old
+ new
@@ -54,10 +54,10 @@
{
memory: memory_stats(metrics),
blkio: blkio_stats(metrics),
cpu: cpu_stats(metrics),
network: network_stats(metrics)
- }.compact
+ }.reject { |_, v| v.nil? }
end
def memory_stats(metrics)
identity = ->(_old, new) { new }