Skip to content

Commit 12fb25f

Browse files
committed
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 <[email protected]>
1 parent 28a507e commit 12fb25f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporter/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func makeMetrics(prefix string, m bson.M, labels map[string]string, compatibleMo
329329
case primitive.A:
330330
res = append(res, processSlice(nextPrefix, v, l, compatibleMode)...)
331331
case []interface{}:
332-
continue
332+
res = append(res, processSlice(nextPrefix, v, l, compatibleMode)...)
333333
default:
334334
rm, err := makeRawMetric(prefix, k, v, l)
335335
if err != nil {

0 commit comments

Comments
 (0)