Skip to content

Instantly share code, notes, and snippets.

@autoletics
Last active February 8, 2017 13:59
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/7fa427c35dfa0696900f450b8d342bd2 to your computer and use it in GitHub Desktop.
Save autoletics/7fa427c35dfa0696900f450b8d342bd2 to your computer and use it in GitHub Desktop.
private static final Name PROBE_NAME = name("current")
.name("probe")
.name("name");
public static void main(String... args) {
final Environment env = context().getEnvironment();
// access to the name of the active probe requires
// the 'current' metering extension to be enabled
out.printf("current.probe: %s%n",
env.getName(PROBE_NAME));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment