LongBackend

org.typelevel.otel4s.metrics.Counter.LongBackend
trait LongBackend[F[_]] extends Backend[F, Long]

Attributes

Source
Counter.scala
Graph
Supertypes
trait Backend[F, Long]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

final 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

Inherited methods

def add(value: Long, 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

Inherited from:
Backend
Source
Counter.scala

Attributes

Inherited from:
Backend
Source
Counter.scala