Created
October 3, 2019 23:23
-
-
Save tjquinno/878af48c79742eea599538f317fb6ba1 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
@Inject | |
MetricRegistry appRegistry; | |
Metadata metadata = Metadata.builder() | |
.withName("com.mycorp.myapp.MyEndpoints.greetings") | |
.withType(MetricType.METERED) | |
.withDisplayName("Endpoint greeting requests") | |
.build(); | |
Meter myMeter = appRegistry.meter(metadata); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment