OutcomeRecorderSyntax

prometheus4cats.OutcomeRecorder$.OutcomeRecorderSyntax
implicit class OutcomeRecorderSyntax[F[_]](recorder: OutcomeRecorder[F, Unit])

Attributes

Source
OutcomeRecorder.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

final def recordOutcome[B, E](outcome: Outcome[F, E, B]): 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

Attributes

Source
OutcomeRecorder.scala
final def surround[B](fb: F[B])(implicit F: MonadCancelThrow[F]): F[B]

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

fb

operation to be evaluated

Attributes

Source
OutcomeRecorder.scala