otel_meter_provider -> otel_meter -> otel_counter, otel_up_down_counter, otel_histogram, otel_gauge
Details
Usually you do not need to deal with otel_histogram objects directly.
histogram_record() automatically sets up a meter and creates a
histogram instrument, as needed.
A histogram object is created by calling the create_histogram() method
of an otel_meter_provider().
You can use the record() method to update the statistics with the
specified amount.
In R histogram values are represented by doubles.
Methods
See also
Other low level metrics API:
get_default_meter_provider(),
get_meter(),
meter_provider_noop,
otel_counter,
otel_gauge,
otel_meter,
otel_meter_provider,
otel_up_down_counter
Examples
mp <- get_default_meter_provider()
mtr <- mp$get_meter()
hst <- mtr$create_histogram("response-time")
hst$record(1.123)