Skip to content

Commit b7e7e73

Browse files
committed
Fix sending explain metrics (#1405)
* Fix sending explain metrics * Fix eslint
1 parent f16d29e commit b7e7e73

File tree

1 file changed

+1
-1
lines changed
  • src/internal-plugins/metrics/lib

1 file changed

+1
-1
lines changed

src/internal-plugins/metrics/lib/rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ module.exports = [
144144
'is multi key': state.isMultiKey,
145145
'is sharded': state.isSharded,
146146
'index type': state.indexType,
147-
'index': state.index,
147+
'index': state.index ? state.index.serialize() : null,
148148
'number of docs returned': state.nReturned,
149149
'number of shards': state.numShards,
150150
'total docs examined': state.totalDocsExamined,

0 commit comments

Comments
 (0)