Subtype of MetricFactory that can register metric callbacks with the DSL
- Note:
Calling MetricFactory.WithCallbacks.mapK will return a MetricFactory only. To change the type of
F
and return a MetricFactory.WithCallbacks you must you MetricFactory.WithCallbacks.imapK.- Companion:
- object
- Source:
- MetricFactory.scala
Type members
Inherited types
- Inherited from:
- MetricFactory
- Source:
- MetricFactory.scala
- Inherited from:
- MetricFactory
- Source:
- MetricFactory.scala
Value members
Concrete methods
Starts creating a "counter" metric.
Starts creating a "counter" metric.
- Definition Classes
- Source:
- MetricFactory.scala
Creates a new instance of MetricFactory with any Metric.CommonLabels
Creates a new instance of MetricFactory with any Metric.CommonLabels
- Definition Classes
- Source:
- MetricFactory.scala
Creates a new instance of MetricFactory without a Metric.Prefix set
Creates a new instance of MetricFactory without a Metric.Prefix set
- Definition Classes
- Source:
- MetricFactory.scala
Starts creating a "gauge" metric.
Starts creating a "gauge" metric.
- Definition Classes
- Source:
- MetricFactory.scala
Starts creating a "histogram" metric.
Starts creating a "histogram" metric.
- Definition Classes
- Source:
- MetricFactory.scala
Given a natural transformation from F
to G
and from G
to F
, transforms this
MetricFactory.WithCallbacks from effect F
to effect G
. The G constraint can also be satisfied by
requiring a Functor[G].
Given a natural transformation from F
to G
and from G
to F
, transforms this
MetricFactory.WithCallbacks from effect F
to effect G
. The G constraint can also be satisfied by
requiring a Functor[G].
- Source:
- MetricFactory.scala
Creates a new instance of MetricFactory with the provided Metric.CommonLabels
Creates a new instance of MetricFactory with the provided Metric.CommonLabels
- Definition Classes
- Source:
- MetricFactory.scala
Creates a new instance of MetricFactory with the given Metric.Prefix set
Creates a new instance of MetricFactory with the given Metric.Prefix set
- Definition Classes
- Source:
- MetricFactory.scala
Inherited methods
Starts creating an "info" metric.
Starts creating an "info" metric.
- Value parameters:
- name
Info.Name value
- Returns:
Info builder
- Example:
metrics.info("app_info").help("my counter help").build
- Inherited from:
- MetricFactory
- Source:
- MetricFactory.scala
Given a natural transformation from F
to G
, transforms this MetricFactory from effect F
to effect G
.
The G constraint can also be satisfied by requiring a Functor[G].
Given a natural transformation from F
to G
, transforms this MetricFactory from effect F
to effect G
.
The G constraint can also be satisfied by requiring a Functor[G].
- Inherited from:
- MetricFactory
- Source:
- MetricFactory.scala