blob: 405d8b092445d7ea5b70eeb7368f6067621969e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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
object Metrics extends ExtensionId[MetricsExtension] with ExtensionIdProvider {
def lookup(): ExtensionId[_ <: actor.Extension] = Metrics
def createExtension(system: ExtendedActorSystem): MetricsExtension = new MetricsExtension(system)
}
class MetricsExtension(system: ExtendedActorSystem) extends Kamon.Extension {
def manager: ActorRef = ???
}
|