Get a meter from the default meter provider
Usage
get_meter(
name = NULL,
version = NULL,
schema_url = NULL,
attributes = NULL,
...,
provider = NULL
)Arguments
- name
Name of the new tracer. If missing, then deduced automatically.
- version
Optional. Specifies the version of the instrumentation scope if the scope has a version (e.g. R package version). Example value:
"1.0.0".- schema_url
Optional. Specifies the Schema URL that should be recorded in the emitted telemetry.
- attributes
Optional. Specifies the instrumentation scope attributes to associate with emitted telemetry.
- ...
Additional arguments are passed to the
get_meter()method of the provider.- provider
Meter provider to use. If
NULL, then it usesget_default_meter_provider()to get a tracer provider.
Value
An otel_meter object.
See also
Other low level metrics API:
get_default_meter_provider(),
meter_provider_noop,
otel_counter,
otel_gauge,
otel_histogram,
otel_meter,
otel_meter_provider,
otel_up_down_counter