Backend

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

Attributes

Source
Counter.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 increment a counter with. Must be non-negative

Attributes

Source
Counter.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
Counter.scala

Attributes

Source
Counter.scala