Function servers::otlp::metrics::encode_gauge

source ·
fn encode_gauge(
    table_writer: &mut MultiTableData,
    name: &str,
    gauge: &Gauge,
    resource_attrs: Option<&Vec<KeyValue>>,
    scope_attrs: Option<&Vec<KeyValue>>,
) -> Result<()>
Expand description

encode this gauge metric

note that there can be multiple data points in the request, it’s going to be stored as multiple rows