Skip to content
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

Include whole body for elasticsearch-py queries #940

Merged
merged 10 commits into from
Oct 5, 2020
Merged

Conversation

basepi
Copy link
Contributor

@basepi basepi commented Oct 5, 2020

See https://discuss.elastic.co/t/apm-not-showing-aggregation/250762
for context.

Basically, by only including the query, we risk missing very useful
pieces of the query for diagnosing issues -- aggs is the big problem
here but I don't see why the user wouldn't want the entire query every
time.

See https://discuss.elastic.co/t/apm-not-showing-aggregation/250762
for context.

Basically, by only including the query, we risk missing very useful
pieces of the query for diagnosing issues -- `aggs` is the big problem
here but I don't see why the user wouldn't want the entire query every
time.
Copy link
Contributor

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Since the JSON structure is not relevant to machines, more relevant to users this isn't going to break anything I'm assuming :)

@apmmachine
Copy link
Contributor

apmmachine commented Oct 5, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #940 updated]

  • Start Time: 2020-10-05T18:14:07.480+0000

  • Duration: 25 min 19 sec

Test stats 🧪

Test Results
Failed 0
Passed 11157
Skipped 8506
Total 19663

@basepi basepi merged commit 00802b5 into elastic:master Oct 5, 2020
romulorosa pushed a commit to romulorosa/apm-agent-python that referenced this pull request Oct 15, 2020
* Include whole body for elasticsearch queries

See https://discuss.elastic.co/t/apm-not-showing-aggregation/250762
for context.

Basically, by only including the query, we risk missing very useful
pieces of the query for diagnosing issues -- `aggs` is the big problem
here but I don't see why the user wouldn't want the entire query every
time.

* Add changelog

* Fix test to use text.keyword to sort

* Use an int field (why is .keyword missing?)

* Fix the _source check and fix async tests

* Fix json sorting

* Fix the *other* async elasticsearch tests...

* Allow for any sorting order by json

* So much copy pasta
romulorosa pushed a commit to romulorosa/apm-agent-python that referenced this pull request Oct 15, 2020
* Include whole body for elasticsearch queries

See https://discuss.elastic.co/t/apm-not-showing-aggregation/250762
for context.

Basically, by only including the query, we risk missing very useful
pieces of the query for diagnosing issues -- `aggs` is the big problem
here but I don't see why the user wouldn't want the entire query every
time.

* Add changelog

* Fix test to use text.keyword to sort

* Use an int field (why is .keyword missing?)

* Fix the _source check and fix async tests

* Fix json sorting

* Fix the *other* async elasticsearch tests...

* Allow for any sorting order by json

* So much copy pasta
beniwohli pushed a commit to beniwohli/apm-agent-python that referenced this pull request Sep 14, 2021
* Include whole body for elasticsearch queries

See https://discuss.elastic.co/t/apm-not-showing-aggregation/250762
for context.

Basically, by only including the query, we risk missing very useful
pieces of the query for diagnosing issues -- `aggs` is the big problem
here but I don't see why the user wouldn't want the entire query every
time.

* Add changelog

* Fix test to use text.keyword to sort

* Use an int field (why is .keyword missing?)

* Fix the _source check and fix async tests

* Fix json sorting

* Fix the *other* async elasticsearch tests...

* Allow for any sorting order by json

* So much copy pasta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants