Builder

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

A builder of Histogram.

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
Histogram.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

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

Creates a Histogram with the given unit, description, and bucket boundaries (if any).

Creates a Histogram with the given unit, description, and bucket boundaries (if any).

Attributes

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

Sets the description for this histogram.

Sets the description for this histogram.

Value parameters

description

the description to use

Attributes

See also
Source
Histogram.scala

Sets the explicit bucket boundaries for this histogram.

Sets the explicit bucket boundaries for this histogram.

Value parameters

boundaries

the boundaries to use

Attributes

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

Sets the unit of measure for this histogram.

Sets the unit of measure for this histogram.

Value parameters

unit

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

Attributes

See also
Source
Histogram.scala