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 3342bcb commit dd4fe20
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ object OpenTelemetryMetrics {
case Right(_) => None // No error.type for successful responses
}
}
).flatMap {
case (k, v) => v(Either.unit).map(value => k -> value)
).collect { case (k, Some(v)) => k -> v }
}
)

Expand Down

0 comments on commit dd4fe20

Please sign in to comment.