Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A class in Scala using StatsD to make a custom metric
class AwesomeData @Inject() (statsd: StatsDClient) {
def emitMetricForNewlyCreatedAwesomeData(): Unit = {
statsd.increment("awesome_data.added", 1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment