trait CallbackRegistry[F[_]] extends AnyRef
Trait for registering callbacks against different backends. May be implemented by anyone for use with MetricFactory.WithCallbacks
- Source
- CallbackRegistry.scala
- Alphabetic
- By Inheritance
- CallbackRegistry
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
registerDoubleCounterCallback[A](prefix: Option[Prefix], name: Name, help: Help, commonLabels: CommonLabels, labelNames: IndexedSeq[Name], callback: F[NonEmptyList[(Double, A)]])(f: (A) ⇒ IndexedSeq[String]): Resource[F, Unit]
Register a labelled counter value that records scala.Double values against a metrics registry
Register a labelled counter value that records scala.Double values against a metrics registry
- prefix
optional Metric.Prefix to be prepended to the metric name
- name
Counter.Name metric name
- help
Metric.Help string to describe the metric
- commonLabels
Metric.CommonLabels map of common labels to be added to the metric
- labelNames
an scala.IndexedSeq of Label.Names to annotate the metric with
- callback
Some effectful operation that returns a cats.data.NonEmptyList of scala.Double and label value tuples
- f
a function from
A
to an scala.IndexedSeq of java.lang.String that provides label values, which must be paired with their corresponding name in the scala.IndexedSeq of Label.Names- returns
An empty side effect to indicate that the callback has been registered
-
abstract
def
registerDoubleGaugeCallback[A](prefix: Option[Prefix], name: Name, help: Help, commonLabels: CommonLabels, labelNames: IndexedSeq[Name], callback: F[NonEmptyList[(Double, A)]])(f: (A) ⇒ IndexedSeq[String]): Resource[F, Unit]
Register a labelled gauge value that records scala.Double values against a metrics registry
Register a labelled gauge value that records scala.Double values against a metrics registry
- prefix
optional Metric.Prefix to be prepended to the metric name
- name
Counter.Name metric name
- help
Metric.Help string to describe the metric
- commonLabels
Metric.CommonLabels map of common labels to be added to the metric
- labelNames
an scala.IndexedSeq of Label.Names to annotate the metric with
- callback
Some effectful operation that returns a cats.data.NonEmptyList of scala.Double and label value tuples
- f
a function from
A
to an scala.IndexedSeq of java.lang.String that provides label values, which must be paired with their corresponding name in the scala.IndexedSeq of Label.Names- returns
An empty side effect to indicate that the callback has been registered
-
abstract
def
registerDoubleHistogramCallback[A](prefix: Option[Prefix], name: Name, help: Help, commonLabels: CommonLabels, labelNames: IndexedSeq[Name], buckets: NonEmptySeq[Double], callback: F[NonEmptyList[(Value[Double], A)]])(f: (A) ⇒ IndexedSeq[String]): Resource[F, Unit]
Register a labelled histogram value that records scala.Double values against a metrics registry
Register a labelled histogram value that records scala.Double values against a metrics registry
- prefix
optional Metric.Prefix to be prepended to the metric name
- name
Counter.Name metric name
- help
Metric.Help string to describe the metric
- commonLabels
Metric.CommonLabels map of common labels to be added to the metric
- labelNames
an scala.IndexedSeq of Label.Names to annotate the metric with
- callback
Some effectful operation that returns a cats.data.NonEmptyList of Histogram.Value parameterised with scala.Double and label value tuples
- f
a function from
A
to an scala.IndexedSeq of java.lang.String that provides label values, which must be paired with their corresponding name in the scala.IndexedSeq of Label.Names- returns
An empty side effect to indicate that the callback has been registered
-
abstract
def
registerDoubleSummaryCallback[A](prefix: Option[Prefix], name: Name, help: Help, commonLabels: CommonLabels, labelNames: IndexedSeq[Name], callback: F[NonEmptyList[(Value[Double], A)]])(f: (A) ⇒ IndexedSeq[String]): Resource[F, Unit]
Register a labelled summary value that records scala.Double values against a metrics registry
Register a labelled summary value that records scala.Double values against a metrics registry
- prefix
optional Metric.Prefix to be prepended to the metric name
- name
Summary.Name metric name
- help
Metric.Help string to describe the metric
- commonLabels
Metric.CommonLabels map of common labels to be added to the metric
- labelNames
an scala.IndexedSeq of Label.Names to annotate the metric with
- callback
Some effectful operation that returns a cats.data.NonEmptyList of Summary.Value parameterised with scala.Double and label value tuples
- f
a function from
A
to an scala.IndexedSeq of java.lang.String that provides label values, which must be paired with their corresponding name in the scala.IndexedSeq of Label.Names- returns
a Summary wrapped in whatever side effect that was performed in registering it
-
abstract
def
registerLongCounterCallback[A](prefix: Option[Prefix], name: Name, help: Help, commonLabels: CommonLabels, labelNames: IndexedSeq[Name], callback: F[NonEmptyList[(Long, A)]])(f: (A) ⇒ IndexedSeq[String]): Resource[F, Unit]
Register a labelled counter value that records scala.Long values against a metrics registry
Register a labelled counter value that records scala.Long values against a metrics registry
- prefix
optional Metric.Prefix to be prepended to the metric name
- name
Counter.Name metric name
- help
Metric.Help string to describe the metric
- commonLabels
Metric.CommonLabels map of common labels to be added to the metric
- labelNames
an scala.IndexedSeq of Label.Names to annotate the metric with
- callback
Some effectful operation that returns a cats.data.NonEmptyList of scala.Long and label value tuples
- f
a function from
A
to an scala.IndexedSeq of java.lang.String that provides label values, which must be paired with their corresponding name in the scala.IndexedSeq of Label.Names- returns
An empty side effect to indicate that the callback has been registered
-
abstract
def
registerLongGaugeCallback[A](prefix: Option[Prefix], name: Name, help: Help, commonLabels: CommonLabels, labelNames: IndexedSeq[Name], callback: F[NonEmptyList[(Long, A)]])(f: (A) ⇒ IndexedSeq[String]): Resource[F, Unit]
Register a labelled gauge value that records scala.Long values against a metrics registry
Register a labelled gauge value that records scala.Long values against a metrics registry
- prefix
optional Metric.Prefix to be prepended to the metric name
- name
Counter.Name metric name
- help
Metric.Help string to describe the metric
- commonLabels
Metric.CommonLabels map of common labels to be added to the metric
- labelNames
an scala.IndexedSeq of Label.Names to annotate the metric with
- callback
Some effectful operation that returns a cats.data.NonEmptyList of scala.Long and label value tuples
- f
a function from
A
to an scala.IndexedSeq of java.lang.String that provides label values, which must be paired with their corresponding name in the scala.IndexedSeq of Label.Names- returns
An empty side effect to indicate that the callback has been registered
-
abstract
def
registerLongHistogramCallback[A](prefix: Option[Prefix], name: Name, help: Help, commonLabels: CommonLabels, labelNames: IndexedSeq[Name], buckets: NonEmptySeq[Long], callback: F[NonEmptyList[(Value[Long], A)]])(f: (A) ⇒ IndexedSeq[String]): Resource[F, Unit]
Register a labelled histogram value that records scala.Long values against a metrics registry
Register a labelled histogram value that records scala.Long values against a metrics registry
- prefix
optional Metric.Prefix to be prepended to the metric name
- name
Counter.Name metric name
- help
Metric.Help string to describe the metric
- commonLabels
Metric.CommonLabels map of common labels to be added to the metric
- labelNames
an scala.IndexedSeq of Label.Names to annotate the metric with
- callback
Some effectful operation that returns a cats.data.NonEmptyList of Histogram.Value parameterised with scala.Long and label value tuples
- f
a function from
A
to an scala.IndexedSeq of java.lang.String that provides label values, which must be paired with their corresponding name in the scala.IndexedSeq of Label.Names- returns
An empty side effect to indicate that the callback has been registered
-
abstract
def
registerLongSummaryCallback[A](prefix: Option[Prefix], name: Name, help: Help, commonLabels: CommonLabels, labelNames: IndexedSeq[Name], callback: F[NonEmptyList[(Value[Long], A)]])(f: (A) ⇒ IndexedSeq[String]): Resource[F, Unit]
Register a labelled summary value that records scala.Long values against a metrics registry
Register a labelled summary value that records scala.Long values against a metrics registry
- prefix
optional Metric.Prefix to be prepended to the metric name
- name
Summary.Name metric name
- help
Metric.Help string to describe the metric
- commonLabels
Metric.CommonLabels map of common labels to be added to the metric
- labelNames
an scala.IndexedSeq of Label.Names to annotate the metric with
- callback
Some effectful operation that returns a cats.data.NonEmptyList of Summary.Value parameterised with scala.Long and label value tuples
- f
a function from
A
to an scala.IndexedSeq of java.lang.String that provides label values, which must be paired with their corresponding name in the scala.IndexedSeq of Label.Names- returns
a Summary wrapped in whatever side effect that was performed in registering it
- abstract def registerMetricCollectionCallback(prefix: Option[Prefix], commonLabels: CommonLabels, callback: F[MetricCollection]): Resource[F, Unit]
Concrete 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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
imapK[G[_]](fk: ~>[F, G], gk: ~>[G, F])(implicit F: MonadCancel[F, _], G: MonadCancel[G, _]): CallbackRegistry[G]
Given a natural transformation from
F
toG
and fromG
toF
, transforms this CallbackRegistry from effectF
to effectG
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()