Skip to content

Instantly share code, notes, and snippets.

@autoletics
Last active January 24, 2017 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save autoletics/7f0c5fa2649e25832695ba3c5a54fe26 to your computer and use it in GitHub Desktop.
Save autoletics/7f0c5fa2649e25832695ba3c5a54fe26 to your computer and use it in GitHub Desktop.
import org.jinspired.probes.*;
public final class Counting {
private static final Probes.Name FN_COUNT = Probes.name("fn").name("count");
public Object fn() {
//...
if(/*...*/) { Probes.context().counter(FN_COUNT).inc(); }
//...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment