try {
incrLogMetricCounter(context, fs, type, result, codec.id);
LogSample sample = new LogSample();
sample.addNormalValue(LOGKEYS.Result.name(), result.name());
sample.addNormalValue(LOGKEYS.Code.name(), codec.id);
if (delay >= 0) sample.addIntValue(LOGKEYS.Delay.name(), delay);
if (numReadBytes >= 0) sample.addIntValue(LOGKEYS.ReadBytes.name(),
numReadBytes);
if (numReadBlocks >= 0) sample.addIntValue(LOGKEYS.ReadBlocks.name(),
numReadBlocks);
if (metaBlocks >= 0) sample.addIntValue(LOGKEYS.MetaBlocks.name(),