Skip to content

Commit

Permalink
Metrics fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rtitle committed Aug 20, 2024
1 parent 3d651e7 commit efaa83e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ class SamAuthProvider[F[_]: OpenTelemetryMetrics](
case Left(error) =>
logger.warn(Map("traceId" -> traceId.asString))(
s"Unable to populate workspace ID for google project $googleProject: $error"
) >> metrics.incrementCounter(metricName, tags = Map("failed" -> "true"))
) >> metrics.incrementCounter(metricName, tags = Map("succeeded" -> "false"))
}
} yield workspaceId.toOption

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ class HttpSamDAO[F[_]](httpClient: Client[F],
override def getResourceParent(authHeader: Authorization, resource: SamResourceId)(implicit
ev: Ask[F, TraceId]
): F[Option[GetResourceParentResponse]] = for {
_ <- metrics.incrementCounter("sam/getParentResource")
_ <- metrics.incrementCounter("sam/getResourceParent")
resp <- httpClient.expectOptionOr[GetResourceParentResponse](
Request[F](
method = Method.GET,
Expand Down

0 comments on commit efaa83e

Please sign in to comment.