metric

zio.blocks.telemetry.metric
object metric

Global metrics entry point. Works without setup. Call install to wire production exporters.

App code uses this directly. Library code should accept Meter via DI.

Attributes

Source
metric.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
metric.type

Members list

Value members

Concrete methods

def counter(name: String): Counter

Creates a Counter on the default meter.

Creates a Counter on the default meter.

Attributes

Source
metric.scala
def gauge(name: String): Gauge

Creates a Gauge on the default meter.

Creates a Gauge on the default meter.

Attributes

Source
metric.scala
def get(name: String): Meter

Returns a named Meter for a specific instrumentation scope.

Returns a named Meter for a specific instrumentation scope.

Attributes

Source
metric.scala
def histogram(name: String): Histogram

Creates a Histogram on the default meter.

Creates a Histogram on the default meter.

Attributes

Source
metric.scala
def install(provider: MeterProvider): Unit

Replaces the default MeterProvider with a user-configured one.

Replaces the default MeterProvider with a user-configured one.

Attributes

Source
metric.scala

Returns the MetricReader for the current provider.

Returns the MetricReader for the current provider.

Attributes

Source
metric.scala
def removeAll(): Unit

Remove the installed MeterProvider. After this, metrics use the default provider.

Remove the installed MeterProvider. After this, metrics use the default provider.

Attributes

Source
metric.scala
def upDownCounter(name: String): UpDownCounter

Creates an UpDownCounter on the default meter.

Creates an UpDownCounter on the default meter.

Attributes

Source
metric.scala