align elasticsearch body capturing with other agents#1013
align elasticsearch body capturing with other agents#1013basepi merged 6 commits intoelastic:masterfrom
Conversation
See elastic/apm#55 This also allows us to get rid of a hack we used to pass the API method and an unserialized version of the body to the instrumentation. Neither is used anymore, so we can skip that part of the instrumentation. This does also mean that we stop capturing the body for some methods, specifically `update` and `delete_by_query`. closes elastic#419
|
@basepi @felixbarny I guess strictly speaking this could constitute a backwards incompatible change, so I vote for including this in 6.0, not 5.10.1. What do you think? |
|
@trentm has been advocating for having the list of endpoints that we capture bodies for be configurable.
Would the backwards compatibility be remained if you just included For these things, I sometimes struggle to find a clear border of what's considered backwards incompatible. In general, I think we should be able to fine-tune the amount of data we collect without having to major-bump the agent version. |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
|
@felixbarny 6.0 isn't very far away, probably just a couple of weeks. As for including those two endpoints, at least for |
ah, nvm then |
using params=None never made sense here
* align elasticsearch body capturing with other agents See elastic/apm#55 This also allows us to get rid of a hack we used to pass the API method and an unserialized version of the body to the instrumentation. Neither is used anymore, so we can skip that part of the instrumentation. This does also mean that we stop capturing the body for some methods, specifically `update` and `delete_by_query`. closes elastic#419 * fix test code using params=None never made sense here * update path matching regex to align with Node.js agent * Add CHANGELOG Co-authored-by: Colton Myers <colton.myers@gmail.com>
See elastic/apm#55
This also allows us to get rid of a hack we used to pass the API method
and an unserialized version of the body to the instrumentation. Neither
is used anymore, so we can skip that part of the instrumentation.
This does also mean that we stop capturing the body for some methods,
specifically
updateanddelete_by_query.closes #419