mirror of
https://github.com/containerd/containerd.git
synced 2026-10-29 10:05:09 +08:00
There was no way to tell whether a cache was doing anything: hits and misses were only visible as trace log lines. Count lookups by result, hits by the directory that served them so caches with different lifetimes can be told apart, the blob bytes served, and lookup errors by reason, which also makes an unreadable cache (a down FUSE mount, say) visible instead of looking like a cold one. Also add a span around the differ's Apply, carrying the layer descriptor and which path handled it. The unpacker traces the fetch and the layer lifecycle but not the apply, so a slow layer couldn't be pinned on the download or the conversion. Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>