Backend

org.typelevel.otel4s.metrics.UpDownCounter.Backend
trait Backend[F[_], A]

Attributes

Source
UpDownCounter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait DoubleBackend[F]
trait LongBackend[F]

Members list

Value members

Abstract methods

def add(value: A, attributes: Iterable[Attribute[_]]): F[Unit]

Records a value with a set of attributes.

Records a value with a set of attributes.

Value parameters

attributes

the set of attributes to associate with the value

value

the value to add to the counter

Attributes

Source
UpDownCounter.scala
def dec(attributes: Iterable[Attribute[_]]): F[Unit]

Decrements a counter by one.

Decrements a counter by one.

Value parameters

attributes

the set of attributes to associate with the value

Attributes

Source
UpDownCounter.scala
def inc(attributes: Iterable[Attribute[_]]): F[Unit]

Increments a counter by one.

Increments a counter by one.

Value parameters

attributes

the set of attributes to associate with the value

Attributes

Source
UpDownCounter.scala

Attributes

Source
UpDownCounter.scala