Skip to content

Commit

Permalink
relaxed typeclass constraint to Monad
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns committed Apr 2, 2024
1 parent f9a8552 commit f4f0ee0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/scala/org/http4s/otel4s/OtelMetrics.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package org.http4s.otel4s

import cats.effect.Sync
import cats.Monad
import cats.syntax.all._
import org.http4s.Method
import org.http4s.Status
Expand Down Expand Up @@ -48,7 +48,7 @@ object OtelMetrics {
* @param prefix
* a prefix that will be added to all metrics
*/
def metricsOps[F[_]: Sync: Meter](
def metricsOps[F[_]: Monad: Meter](
attributes: Attributes = Attributes.empty,
responseDurationSecondsHistogramBuckets: BucketBoundaries = DefaultHistogramBuckets,
): F[MetricsOps[F]] =
Expand Down Expand Up @@ -122,7 +122,7 @@ object OtelMetrics {
nanos / 1000000000.0
}

private def createMetricsCollection[F[_]: Sync: Meter](
private def createMetricsCollection[F[_]: Monad: Meter](
responseDurationSecondsHistogramBuckets: BucketBoundaries,
): F[MetricsCollection[F]] = {
val requestDuration: F[Histogram[F, Double]] =
Expand Down

0 comments on commit f4f0ee0

Please sign in to comment.