Skip to content

Commit

Permalink
Update Http4s 0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDavenport committed Jun 21, 2021
1 parent aebe6bc commit a12cbff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ lazy val contributors = Seq(
"ChristopherDavenport" -> "Christopher Davenport"
)

val catsV = "2.1.1"
val catsEffectV = "2.1.4"
val catsV = "2.6.1"
val catsEffectV = "2.5.1"
val shapelessV = "2.3.3"
val fs2V = "2.4.6"
val http4sV = "0.21.18"
val fs2V = "2.5.6"
val http4sV = "0.22.0-RC1"
lazy val epimetheusV = "0.4.0"

val specs2V = "4.10.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import cats.effect._
import org.http4s.{Method, Status}
import org.http4s.metrics.MetricsOps
import org.http4s.metrics.TerminationType
import org.http4s.metrics.TerminationType.{Abnormal, Error, Timeout}
import org.http4s.metrics.TerminationType.{Abnormal, Error, Timeout, Canceled}
import shapeless._

import io.chrisdavenport.epimetheus._
Expand Down Expand Up @@ -215,8 +215,9 @@ object EpimetheusOps {
def secondaryReportMethod(m: Method): String = m.name.toLowerCase()

private def reportTermination(t: TerminationType): String = t match {
case Abnormal => "abnormal"
case Error => "error"
case Canceled => "canceled"
case Abnormal(_) => "abnormal"
case Error(_) => "error"
case Timeout => "timeout"
}

Expand Down

0 comments on commit a12cbff

Please sign in to comment.