couchbaselabs / couchbaselabs/node-ottoman

Model.find() does not expose metrics for profiling

Open
#794 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
295
Forks
99
PR merge metrics
No merged PRs in 30d

Description

The response of a model.find() object does not include the metrics object which can be found in the native nodeJS SDK, instead it comes through as undefined.

```
meta: QueryMetaData {
requestId: '31e63cf5-39a7-4032-930e-73e9be15789a',
clientContextId: 'f29f81-a12a-7340-5d43-67850195bcbc34',
status: 'success',
signature: {
_type: 'json',
email: 'json',
firstName: 'json',
id: 'json',
lastName: 'json',
num: 'json'
},
warnings: [],
metrics: undefined,
profile: undefined
}
}
```
Attempting to set the options flag from the NodeJS SDJK like so, also does not work:
`result = await Test.find({ firstName: 'Major' }, { metrics: true }); `

Can this please be exposed in Ottoman so we can monitor query performance during development?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.