Skip to content

Commit

Permalink
Update Metric.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 authored Dec 11, 2024
1 parent eec5498 commit f5ccae4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ case class EndpointMetric[F[_]](
case class ResponsePhaseLabel(name: String, headersValue: String, bodyValue: String)
case class MetricLabels(
forRequest: List[(String, (AnyEndpoint, ServerRequest) => String)],
forResponse: List[(String, Either[Throwable, ServerResponse[_]] => String)],
forResponse: List[(String, Either[Throwable, ServerResponse[_]] => Option[String])],
forResponsePhase: ResponsePhaseLabel = ResponsePhaseLabel("phase", "headers", "body")
) {
def namesForRequest: List[String] = forRequest.map { case (name, _) => name }
Expand Down

0 comments on commit f5ccae4

Please sign in to comment.