Builder

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

A builder of Counter.

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

Source
Counter.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def create: F[Counter[F, A]]

Creates a Counter with the given unit and description (if any).

Creates a Counter with the given unit and description (if any).

Attributes

Source
Counter.scala
def withDescription(description: String): Builder[F, A]

Sets the description for this counter.

Sets the description for this counter.

Value parameters

description

the description

Attributes

See also
Source
Counter.scala
def withUnit(unit: String): Builder[F, A]

Sets the unit of measure for this counter.

Sets the unit of measure for this counter.

Value parameters

unit

the measurement unit. Must be 63 or fewer ASCII characters.

Attributes

See also
Source
Counter.scala