diff --git a/opentelemetry/src/main/scala/zio/telemetry/opentelemetry/metrics/Meter.scala b/opentelemetry/src/main/scala/zio/telemetry/opentelemetry/metrics/Meter.scala index c65b03ae..acf5846b 100644 --- a/opentelemetry/src/main/scala/zio/telemetry/opentelemetry/metrics/Meter.scala +++ b/opentelemetry/src/main/scala/zio/telemetry/opentelemetry/metrics/Meter.scala @@ -60,11 +60,14 @@ trait Meter { * @param description * description is an optional free-form text provided by the author of the instrument. The API MUST treat it as an * opaque string + * @param boundaries + * the explicit bucket boundaries advice */ def histogram( name: String, unit: Option[String] = None, - description: Option[String] = None + description: Option[String] = None, + boundaries: Option[Chunk[Double]] = None )(implicit trace: Trace): UIO[Histogram[Double]] /** @@ -157,9 +160,10 @@ object Meter { override def histogram( name: String, unit: Option[String] = None, - description: Option[String] = None + description: Option[String] = None, + boundaries: Option[Chunk[Double]] = None )(implicit trace: Trace): UIO[Histogram[Double]] = - ZIO.succeed(builder.histogram(name, unit, description)) + ZIO.succeed(builder.histogram(name, unit, description, boundaries)) override def observableCounter( name: String, diff --git a/project/plugins.sbt b/project/plugins.sbt index 7de1a0f6..68c6e9f5 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -17,4 +17,4 @@ addSbtPlugin("ch.epfl.scala" % "sbt-missinglink" % libraryDependencies += "org.snakeyaml" % "snakeyaml-engine" % "2.7" libraryDependencies += "com.spotify" % "missinglink-core" % "0.2.11" -resolvers += Resolver.sonatypeRepo("public") +resolvers ++= Resolver.sonatypeOssRepos("public")