Skip to content

Commit

Permalink
Update metrics/opentelemetry-metrics/src/main/scala/sttp/tapir/server…
Browse files Browse the repository at this point in the history
…/metrics/opentelemetry/OpenTelemetryMetrics.scala
  • Loading branch information
varshith257 authored Nov 16, 2024
1 parent 21d174f commit 3342bcb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ object OpenTelemetryMetrics {
case Right(_) => None // No error.type for successful responses
}
}
).collect { case (k, v) if v(response) != None => k -> v(response).get }
).flatMap {
case (k, v) => v(Either.unit).map(value => k -> value)
}
)

def apply[F[_]](meter: Meter): OpenTelemetryMetrics[F] = apply(meter, Nil)
Expand Down

0 comments on commit 3342bcb

Please sign in to comment.