sealed abstract class WithCallbacks[F[_]] extends MetricFactory[F]
Subtype of MetricFactory that can register metric callbacks with the DSL
- Source
- MetricFactory.scala
- 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.
- Alphabetic
- By Inheritance
- WithCallbacks
- MetricFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type CounterDsl[MDsl[_[_], _, _[_[_], _], _[_[_], _, _]], A] = HelpStep[MDsl[F, A, Counter, Labelled]]
- Definition Classes
- MetricFactory
- type GaugeDsl[MDsl[_[_], _, _[_[_], _], _[_[_], _, _]], A] = HelpStep[MDsl[F, A, Gauge, Labelled]]
- Definition Classes
- MetricFactory
- type HistogramCallbackDsl[G[_], A, M[_[_], _], L[_[_], _, _]] = internal.MetricDsl.WithCallbacks[G, A, Value[A], M, L]
- type HistogramDsl[MDsl[_[_], _, _[_[_], _], _[_[_], _, _]], A] = HelpStep[BucketDsl[MDsl[F, A, Histogram, Labelled], A]]
- Definition Classes
- MetricFactory
- type SimpleCallbackDsl[G[_], A, M[_[_], _], L[_[_], _, _]] = internal.MetricDsl.WithCallbacks[G, A, A, M, L]
- type SummaryCallbackDsl[A] = HelpStep[internal.summary.SummaryDsl.WithCallbacks[F, A, Value[A]]]
- type SummaryDslLambda[A] = HelpStep[Base[F, A]]
- Definition Classes
- MetricFactory
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val commonLabels: CommonLabels
- Definition Classes
- MetricFactory
- def counter(name: Name): TypeStep[[β$8$]HelpStep[internal.MetricDsl.WithCallbacks[F, β$8$, β$8$, Counter, Labelled]]]
Starts creating a "counter" metric.
Starts creating a "counter" metric.
- name
Counter.Name value
- returns
Counter builder
- Definition Classes
- WithCallbacks → MetricFactory
- def dropCommonLabels: WithCallbacks[F]
Creates a new instance of MetricFactory with any Metric.CommonLabels
Creates a new instance of MetricFactory with any Metric.CommonLabels
- Definition Classes
- WithCallbacks → MetricFactory
- def dropPrefix: WithCallbacks[F]
Creates a new instance of MetricFactory without a Metric.Prefix set
Creates a new instance of MetricFactory without a Metric.Prefix set
- Definition Classes
- WithCallbacks → MetricFactory
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def gauge(name: Name): TypeStep[[β$6$]HelpStep[internal.MetricDsl.WithCallbacks[F, β$6$, β$6$, Gauge, Labelled]]]
Starts creating a "gauge" metric.
Starts creating a "gauge" metric.
- name
Gauge.Name value
- returns
Gauge builder
- Definition Classes
- WithCallbacks → MetricFactory
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def histogram(name: Name): TypeStep[[β$10$]HelpStep[BucketDsl[internal.MetricDsl.WithCallbacks[F, β$10$, Value[β$10$], Histogram, Labelled], β$10$]]]
Starts creating a "histogram" metric.
Starts creating a "histogram" metric.
- name
Histogram.Name value
- returns
Histogram builder
- Definition Classes
- WithCallbacks → MetricFactory
- def imapK[G[_]](fk: ~>[F, G], gk: ~>[G, F])(implicit F: MonadCancel[F, _], G: MonadCancel[G, _]): WithCallbacks[G]
Given a natural transformation from
F
toG
and fromG
toF
, transforms this MetricFactory.WithCallbacks from effectF
to effectG
.Given a natural transformation from
F
toG
and fromG
toF
, transforms this MetricFactory.WithCallbacks from effectF
to effectG
. The G constraint can also be satisfied by requiring a Functor[G]. - def info(name: Name): HelpStep[BuildStep[F, Info[F, Map[Name, String]]]]
Starts creating an "info" metric.
Starts creating an "info" metric.
- name
Info.Name value
- returns
Info builder
- Definition Classes
- MetricFactory
metrics.info("app_info").help("my counter help").build
Example: - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapK[G[_]](fk: ~>[F, G])(implicit F: MonadCancel[F, _], G: MonadCancel[G, _]): MetricFactory[G]
Given a natural transformation from
F
toG
, transforms this MetricFactory from effectF
to effectG
.Given a natural transformation from
F
toG
, transforms this MetricFactory from effectF
to effectG
. The G constraint can also be satisfied by requiring a Functor[G].- Definition Classes
- MetricFactory
- def metricCollectionCallback(collection: F[MetricCollection]): BuildStep[F, Unit]
- val metricRegistry: MetricRegistry[F]
- Attributes
- protected[prometheus4cats]
- Definition Classes
- WithCallbacks → MetricFactory
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val prefix: Option[Prefix]
- Definition Classes
- MetricFactory
- def summary(name: Name): TypeStep[SummaryCallbackDsl]
- Definition Classes
- WithCallbacks → MetricFactory
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withCommonLabels(commonLabels: CommonLabels): WithCallbacks[F]
Creates a new instance of MetricFactory with the provided Metric.CommonLabels
Creates a new instance of MetricFactory with the provided Metric.CommonLabels
- Definition Classes
- WithCallbacks → MetricFactory
- def withPrefix(prefix: Prefix): WithCallbacks[F]
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
- WithCallbacks → MetricFactory