blob: 355c67c76c85dd385edd84a12a2764be124209ef (
plain) (
tree)
|
|
package kamon
import com.codahale.metrics.MetricRegistry
import com.typesafe.config.ConfigFactory
import akka.actor.{ActorRef, ExtendedActorSystem, ExtensionIdProvider, ExtensionId}
import kamon.Kamon.Extension
import akka.actor
class MetricsExtension(system: ExtendedActorSystem) extends Kamon.Extension {
def manager: ActorRef = ???
}
object Metrics extends ExtensionId[MetricsExtension] with ExtensionIdProvider {
def lookup(): ExtensionId[_ <: actor.Extension] = Metrics
def createExtension(system: ExtendedActorSystem): Extension = new MetricsExtension(system)
val registry = new MetricRegistry
}
|