-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Allow comment in request payload to be returned in the response payload. #61118
Comments
Pinging @elastic/es-core-infra (:Core/Infra/Logging) |
To clarify, are you asking for Since you mentioned troubleshooting, would getting access to |
Seems related to the enhancement request to support comments in the body of requests in Console (elastic/kibana#11973), which has been requested a few times. |
@costin . A flag like {"track_total_hits": true }, or {"profile" : true } is what I'm thinking. For example:
And the payload looks something like this
Maybe just return the first comment or concatenate all into 1 is fine too. If you guys are going to do this, please also honor this flag in your own internal display.
Thanks. |
Supporting arbitrary elements alongside the response is problematic, see some of the examples in my previous comment. For your particular use-case, I recommend creating your own plugin which can enhance the request/response to your preference. This should help move things forward and also validate your ideas. |
Maybe returning result of X-Opaque-ID to all access is easier. Thanks. |
@linker-c we are trying to understand the deficiencies of |
Really? |
It is available since 6.2.0. See #27764. It is just not available on _cat API.
|
I opened PR for cat API. |
Adds an optional column with support for x_opaque_id to _cat/tasks API. Closes #61118
Adds an optional column with support for x_opaque_id to _cat/tasks API. Closes elastic#61118
Since elastic#63036 is now backported, we can enable this test for earlier versions. Relates to elastic#61118
The idea is very similar to "X-Opaque-ID" from http request header. But make it part of the payload so the value will be available in all aspect of debugging.
X-Opaque-ID only shows up for slow logs, which is not friendly enough IMO.
I often use kibana to see detailed task and any query taking too long will be spotted easily. Especially performance degradation over time.
The problem for me is that I have no idea who made that request and under what context. The coders don't even know most of the time.
If there's a boolean flag that allows us to return the comment from request payload, then I can easily use comment as an ID.
It will speed up troubleshooting significantly.
The text was updated successfully, but these errors were encountered: