Record a value of an OpenTelemetry gauge
Arguments
- name
Name of the gauge
- value
Value to record.
- attributes
Additional attributes to add.
- context
Span context. If missing the active context is used, if any.
- meter
Meter object (otel_meter). Otherwise it is passed to
get_meter()
to get a meter.
Value
The gauge object (otel_gauge), invisibly.
See also
Other OpenTelemetry metrics instruments:
counter_add()
,
histogram_record()
,
up_down_counter_add()
Other OpenTelemetry metrics API:
counter_add()
,
histogram_record()
,
is_measuring_enabled()
,
up_down_counter_add()