From 12fb25fc965827b03ae1a060943e06443a94e3ec Mon Sep 17 00:00:00 2001 From: LinPr <314573849@qq.com> Date: Fri, 8 Aug 2025 16:52:29 +0800 Subject: [PATCH] fix: make the case []interface{} process consist with the case primitive.A, just like the upper case bson.M and case map[string]interface{} have the same process Signed-off-by: LinPr <314573849@qq.com> --- exporter/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/metrics.go b/exporter/metrics.go index 6cf9a2f66..b32e67e2b 100644 --- a/exporter/metrics.go +++ b/exporter/metrics.go @@ -329,7 +329,7 @@ func makeMetrics(prefix string, m bson.M, labels map[string]string, compatibleMo case primitive.A: res = append(res, processSlice(nextPrefix, v, l, compatibleMode)...) case []interface{}: - continue + res = append(res, processSlice(nextPrefix, v, l, compatibleMode)...) default: rm, err := makeRawMetric(prefix, k, v, l) if err != nil {