Gauge

org.typelevel.otel4s.metrics.Gauge
See theGauge companion object
trait Gauge[F[_], A]

A Gauge instrument that records non-additive values of type A.

Type parameters

A

the type of the values to record. The type must have an instance of MeasurementValue. scala.Long and scala.Double are supported out of the box.

F

the higher-kinded type of a polymorphic effect

Attributes

See also
Companion
object
Source
Gauge.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def backend: Backend[F, A]

Attributes

Inherited from:
GaugeMacro (hidden)
Source
GaugeMacro.scala
inline def record(inline value: A, inline 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 record

Attributes

Inherited from:
GaugeMacro (hidden)
Source
GaugeMacro.scala
inline def record(inline value: A, inline attributes: 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 record

Attributes

Inherited from:
GaugeMacro (hidden)
Source
GaugeMacro.scala