samstarling / finagle-prometheus

Provides a bridge between Finagle and Prometheus metrics
https://samstarling.co.uk/projects/finagle-prometheus/
MIT License
30 stars 18 forks source link

Switch to using HashedWheelTimer #31

Closed samstarling closed 6 years ago

samstarling commented 6 years ago

This stops the exception seen by @seanbrant in #24, by no longer using DefaultTimer.getInstance.

ERROR com.twitter.app.LoadService - LoadService: failed to instantiate 'com.samstarling.prometheusfinagle.PrometheusStatsReceiver' for the requested service 'com.twitter.finagle.stats.StatsReceiver'
java.lang.NullPointerException: null
    at com.twitter.util.ProxyTimer.schedulePeriodically(Timer.scala:148)
    at com.twitter.util.Timer.schedule(Timer.scala:56)
    at com.twitter.util.Timer.schedule$(Timer.scala:53)