Skip to content

Commit

Permalink
Update prometheus-tools from 1.0.8 to 1.1.0
Browse files Browse the repository at this point in the history
Source and binary compatibility preserved, but the version
has to be bumped to 1.2.0 because of the dependency update.
  • Loading branch information
migesok committed Sep 3, 2024
1 parent 566ce7f commit a30ce87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ lazy val commonSettings = Seq(

// Your next release will be binary compatible with the previous one,
// but it may not be source compatible (ie, it will be a minor release).
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
//
// It is not set to BinaryAndSourceCompatible because prometheus-tools was bumped from 1.0.8 to 1.1.0.
// Otherwise, 1.2.0 is both source and binary compatible with 1.1.5.
ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible

lazy val root = (project
in file(".")
Expand All @@ -39,7 +42,7 @@ lazy val sequentially = (project
"com.typesafe.akka" %% "akka-stream" % "2.6.21",
"com.typesafe.akka" %% "akka-testkit" % "2.6.21" % Test,
"com.evolutiongaming" %% "future-helper" % "1.0.7",
"org.scalatest" %% "scalatest" % "3.2.10" % Test,
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
)))

lazy val benchmark = (project
Expand All @@ -55,7 +58,7 @@ lazy val `sequentially-metrics` = (project
settings commonSettings
dependsOn sequentially
settings (libraryDependencies ++= Seq(
"com.evolutiongaming" %% "prometheus-tools" % "1.0.8"
"com.evolutiongaming" %% "prometheus-tools" % "1.1.0"
)))

//used by evolution-gaming/scala-github-actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object SequentiallyMetrics {
}

def run[T](future: => Future[T]): Future[T] = {
time.labels(name, "run").timeFutureNanos(future)
time.labels(name, "run").timeFuture(future)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "1.1.6-SNAPSHOT"
ThisBuild / version := "1.2.0-SNAPSHOT"

0 comments on commit a30ce87

Please sign in to comment.