Skip to content

Instantly share code, notes, and snippets.

@tjquinno
Created October 3, 2019 23:23
Show Gist options
  • Save tjquinno/878af48c79742eea599538f317fb6ba1 to your computer and use it in GitHub Desktop.
Save tjquinno/878af48c79742eea599538f317fb6ba1 to your computer and use it in GitHub Desktop.
@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