Last active
February 8, 2017 13:59
-
-
Save autoletics/7fa427c35dfa0696900f450b8d342bd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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