-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return metrics #506
Return metrics #506
Conversation
Hi @Jeadie . Got some questions regarding search!
Otherwise this is looking better! |
|
Thanks @Jeadie For |
Do we want this for bulk_search (when lexical) and add_documents too? Currently preprocess means the same thing across endpoints (i.e. before opensearch) |
yep, this can apply to other endpoints |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to inline comments, I think we will need a naming convention for metrics. It could be as simple as module_name.sth_unique_within_the_module
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
no query parameter
telemetry=True/False
What is the new behavior (if this is a feature change)?
For each API endpoint, if:
telemetry=True
is provided2.Dict
structureWe will return timing metrics for the following (when applicable)
These timings are returned under the key
telemetry
. For example, for POST add documents,Search
Similarily, bulk search
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Have unit tests been run against this PR? (Has there also been any additional testing?)
Yep, and new ones added
telemetry=True
query parameter. Failed tests are all due to explicitly not expectingtelemetry
key in response.Related Python client changes (link commit/PR here)
WIP
Related documentation changes (link commit/PR here)
WIP
Other information:
Please check if the PR fulfills these requirements