ExemplarLabelledOutcomeRecorderSyntax
Attributes
- Source
- OutcomeRecorder.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
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
- labels
-
labels to add to the underlying metric
- outcome
-
the cats.effect.kernel.Outcome to be recorded
Attributes
- Source
- OutcomeRecorder.scala
Record the result of provided cats.effect.kernel.Outcome computing additional labels from the result.
Record the result of provided cats.effect.kernel.Outcome computing additional labels from the result.
The resulting metrics depend on the underlying implementation. See OutcomeRecorder.fromCounter and OutcomeRecorder.fromGauge for more details.
Value parameters
- labelsCanceled
-
labels to add when the operation is canceled
- labelsError
-
function to compute labels from the exception that was raised if the operation is unsuccessful
- labelsSuccess
-
function to compute labels from the result of
fb
when the operation is successful - outcome
-
the cats.effect.kernel.Outcome to be recorded
Attributes
- Source
- OutcomeRecorder.scala
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
- labels
-
labels to add to the underlying metric
Attributes
- Source
- OutcomeRecorder.scala
Surround an operation and evaluate its outcome using an instance of cats.effect.kernel.MonadCancel, computing additional labels from the result.
Surround an operation and evaluate its outcome using an instance of cats.effect.kernel.MonadCancel, computing additional labels from the result.
The resulting metrics depend on the underlying implementation. See OutcomeRecorder.fromCounter and OutcomeRecorder.fromGauge for more details.
Value parameters
- fb
-
operation to be evaluated
- labelsCanceled
-
labels to add when the operation is canceled
- labelsError
-
function to compute labels from the exception that was raised if the operation is unsuccessful
- labelsSuccess
-
function to compute labels from the result of
fb
when the operation is successful
Attributes
- Source
- OutcomeRecorder.scala