LabelledMetricDsl

class LabelledMetricDsl[F[_], A, T, N <: Nat, L[_[_], _, _]]
Companion:
object
Source:
package.scala
class Object
trait Matchable
class Any
class WithCallbacks[F, A, A0, T, N, L]

Value members

Concrete methods

override def contramapLabels[B](f0: B => T): LabelledMetricDsl[F, A, B, N, L]
Definition Classes
BaseLabelsBuildStep
Source:
package.scala
def label[B]: LabelApply[F, A, T, N, B, L]

Sets a new label for the metric, the label type will be joined together with previous types in a tuple. Requires either a Show instance for the label type, or a method converting the label value to a String.

Sets a new label for the metric, the label type will be joined together with previous types in a tuple. Requires either a Show instance for the label type, or a method converting the label value to a String.

Source:
package.scala

Inherited methods

override def build: Resource[F, L[F, A, T]]

Builds the metric

Builds the metric

Definition Classes
BaseLabelsBuildStep -> BuildStep
Inherited from:
BaseLabelsBuildStep (hidden)
Source:
package.scala
def map[B](f: L[F, A, T] => B): BuildStep[F, B]
Inherited from:
BuildStep (hidden)
Source:
package.scala
def unsafeBuild(implicit F: MonadCancelThrow[F]): F[A]

Unsafely builds the metric, but does not deallocate

Unsafely builds the metric, but does not deallocate

Inherited from:
BuildStep (hidden)
Source:
package.scala