-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Improve deprecation log traceability #80232
Comments
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Pinging @elastic/es-data-management (Team:Data Management) |
Pinging @elastic/kibana-stack-management (Team:Stack Management) |
From my testing of the Upgrade assistant UI this looks like a bug. The Upgrade assistant UI job is to help our users upgrade to In my current testing I am receiving the following critical warning:
This is the detailed deprecation in the UI Unfortunately our user don't have enough information to fix that problem and trace back to their application code that needs to be updated in order to fix the problem and upgrade to |
I took a quick look at the code around the deprecation warning in the example here. It would take some work to add the request itself to the log message, but the deprecation code already supports the
|
Just to be clear. The issue is about finding out which part of the "User app" called a deprecated api? I think traceparent/trace.id in addition to x-opaque-id could help to achieve that. https://www.elastic.co/guide/en/elasticsearch/reference/7.17/api-conventions.html |
@pgayvallet Could you please provide input here, particularly regarding the feasibility of @pgomulka's suggestion, above? I see from elastic/kibana#123737 that Core team has been thinking through how to use x-opace-id and trace.id, and this seems related. |
We're already sending a Now, about using that header for traceability, I'll set @mshustov answer, as I don't think that's the direction we're taking (from my understanding, the end goal for traceability was the usage of the |
right, traceparent/trace.id would help to trace a call to an origin in the Kibana server. If a request is triggered from the Kibana application, the only way to trace it is to an origin is to rely on |
Thank you @mshustov. So, to conclude, is Kibana planning to change its usage of |
Do you mean whether Kibana will get rid of the dynamic part of |
@mshustov Sorry I'm just trying to figure out on a high-level whether this issue is worth keeping open. Do we need more features from ES to improve tracing in Kibana, or are the existing features sufficient? If they're sufficient I'll close this. Thanks. :) |
@cjcenizal I don't think there is anything else for the ES team to improve right now. All the remaining work (elastic/kibana#123197) seems to be on the Kibana side. |
Thanks @mshustov! |
Problem
Upgrade Assistant surfaces ES deprecation logs, but it's a guessing game to figure out which requests are triggering them, and which part of a codebase is sending those requests.
Solution
If I could wave a magic wand, I'd like to see the API request which triggered the deprecation warning. If we could also show the headers that were sent with the request we could specify custom headers to be precisely pinpoint where the request originates in the application code.
The text was updated successfully, but these errors were encountered: