OutcomeRecorder

sealed abstract class OutcomeRecorder[F[_]]

A derived metric type that records the outcome of an operation. See OutcomeRecorder.fromCounter and OutcomeRecorder.fromGauge for more information.

Companion:
object
Source:
OutcomeRecorder.scala
class Object
trait Matchable
class Any

Type members

Value members

Concrete methods

final def recordOutcome[A, E](outcome: Outcome[F, E, A]): F[Unit]

Record the result of provided cats.effect.kernel.Outcome

Record the result of provided cats.effect.kernel.Outcome

The resulting metrics depend on the underlying implementation. See OutcomeRecorder.fromCounter and OutcomeRecorder.fromGauge for more details.

Value parameters:
outcome

the cats.effect.kernel.Outcome to be recorded

Source:
OutcomeRecorder.scala
final def surround[A](fa: F[A]): F[A]

Surround an operation and evaluate its outcome using an instance of cats.effect.kernel.MonadCancel.

Surround an operation and evaluate its outcome using an instance of cats.effect.kernel.MonadCancel.

The resulting metrics depend on the underlying implementation. See OutcomeRecorder.fromCounter and OutcomeRecorder.fromGauge for more details.

Value parameters:
fa

operation to be evaluated

Source:
OutcomeRecorder.scala