-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APM] Document
_inspect
flag (#117635)
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
x-pack/plugins/apm/dev_docs/query_debugging_in_development_and_production.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Query Debugging | ||
|
||
When debugging an issue with the APM UI it can be very helpful to see the exact Elasticsearch queries and responses that was made for a given API request. | ||
To enable debugging of Elasticsearch queries in APM UI do the following: | ||
|
||
1. Go to "Stack Management" | ||
2. Under "Kibana" on the left-hand side, select "Advanced Settings" | ||
3. Search for "Observability" | ||
4. Enable "Inspect ES queries" setting | ||
5. Click "Save" | ||
|
||
When you navigate back to APM UI you can now inspect Elasticsearch queries by opening your browser's Developer Tools and selecting an api request to APM's api. | ||
There will be an `_inspect` key containing every Elasticsearch query made during that request including both requests and responses to and from Elasticsearch. | ||
|
||
![image](https://user-images.githubusercontent.com/209966/140500012-b075adf0-8401-40fd-99f8-85b68711de17.png) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters