elastic / elastic/apm-agent-java
Remove http client request body capturing 1024 byte limit
- Dominant language
- Java
- Stars
- 594
- Forks
- 338
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 25
Description
We would like to extend the HTTP client request body capturing feature to support more than 1024 bytes.
The 1024 bytes limit currently comes from the fact that we send the content as `otel.attribute` in Intakev2, which only supports 1024 bytes.
Therefore we'll have to extend the Intakev2 protocol with a separate field which doesn't have this limitation, like we already do for transactions.
- [ ] Add support for `http.request.body` intakev2 field to spans (copy it from transactions `request.body`)
- [ ] Send the http client requests bodies in `http.request.body` instead of `otel.attributes`
- [ ] Drop the 1024 bytes limitation when capturing the bodies
Contributor guide
Assessment
This issue has not been assessed yet.