in src/it/scala/com/gu/kinesis/ScalaKinesisProducer.scala [129:139]
def getInstance(config: Config): ProducerStats = {
try {
val className = config.getString("com.gu.kinesis.producer.stats-class-name")
Class.forName(className).newInstance().asInstanceOf[ProducerStats]
}
catch {
case NonFatal(e) =>
log.error("Could not load a `ProducerStats` instance, falling back to `NoopProducerStats`.", e)
new NoopProducerStats
}
}