Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Commit

Permalink
fix: Force conversation toSeq in config
Browse files Browse the repository at this point in the history
Should fix the build failing in scala 2.13.x
  • Loading branch information
Chris Turner authored and gjsduarte committed Jul 19, 2019
1 parent b3bd5b4 commit 7389d70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/scala/kamon/prometheus/PrometheusReporter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ object PrometheusReporter {
startEmbeddedServer = prometheusConfig.getBoolean("start-embedded-http-server"),
embeddedServerHostname = prometheusConfig.getString("embedded-server.hostname"),
embeddedServerPort = prometheusConfig.getInt("embedded-server.port"),
defaultBuckets = prometheusConfig.getDoubleList("buckets.default-buckets").asScala,
timeBuckets = prometheusConfig.getDoubleList("buckets.time-buckets").asScala,
informationBuckets = prometheusConfig.getDoubleList("buckets.information-buckets").asScala,
defaultBuckets = prometheusConfig.getDoubleList("buckets.default-buckets").asScala.toSeq,
timeBuckets = prometheusConfig.getDoubleList("buckets.time-buckets").asScala.toSeq,
informationBuckets = prometheusConfig.getDoubleList("buckets.information-buckets").asScala.toSeq,
customBuckets = readCustomBuckets(prometheusConfig.getConfig("buckets.custom")),
includeEnvironmentTags = prometheusConfig.getBoolean("include-environment-tags")
)
Expand All @@ -139,7 +139,7 @@ object PrometheusReporter {
private def readCustomBuckets(customBuckets: Config): Map[String, Seq[java.lang.Double]] =
customBuckets
.topLevelKeys
.map(k => (k, customBuckets.getDoubleList(ConfigUtil.quoteString(k)).asScala))
.map(k => (k, customBuckets.getDoubleList(ConfigUtil.quoteString(k)).asScala.toSeq))
.toMap
}
}

0 comments on commit 7389d70

Please sign in to comment.