Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exporter/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can simplify this and merge this case with primitive.A

case primitive.A, []interface{}: res = append(res, processSlice(nextPrefix, v, l, compatibleMode)...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can simplify this and merge this case with primitive.A

case primitive.A, []interface{}: res = append(res, processSlice(nextPrefix, v, l, compatibleMode)...)

I tried, not workable, there will be an error like this.
6658baebb26076b22e218081aabbcd1f

default:
rm, err := makeRawMetric(prefix, k, v, l)
if err != nil {
Expand Down
Loading