Skip to content

Instantly share code, notes, and snippets.

@siddontang
Last active May 26, 2018 04:09
Show Gist options
  • Save siddontang/d96e51a3f074bd7c89378c676e5a487e to your computer and use it in GitHub Desktop.
Save siddontang/d96e51a3f074bd7c89378c676e5a487e to your computer and use it in GitHub Desktop.
public Status read(String table, String key, Set<String> fields,
Map<String, ByteIterator> result) {
try (final TraceScope span = tracer.newScope(scopeStringRead)) {
long ist = measurements.getIntendedtartTimeNs();
long st = System.nanoTime();
Status res = db.read(table, key, fields, result);
long en = System.nanoTime();
measure("READ", res, ist, st, en);
measurements.reportStatus("READ", res);
return res;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment