Request payload sends encrypted data on browser

Kibana version :7.6.2

APM Agent language and version : elastic/apm-rum@5.30.0

Browser version : google chrome 84.0.4147.105

Original install method (e.g. download page, yum, deb, from source, etc.) and version : npm

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant) :

Hi Guys, I updated the apm-rum@4.9.1 to apm-rum@5.5.0 and aflter to test apm-rum@5.3.0. In both the request payload is sending encrypted data. Example:

Captura de tela de 2020-09-01 11-29-26

How do I do to send normal json?

Hi @alexandreservian,

From the recent release, from 5.4.0 version we added support to compress the payload before being sent to the APM server to reduce the payload size significantly. This is only applicable to Chrome browser > 81 as the CompressionStream specification https://wicg.github.io/compression/ is supported only for those browsers.

If it's just for debugging purposes, you can decompress and view the data or can set logLevel: debug to log the transaction data.

https://www.elastic.co/guide/en/apm/agent/rum-js/current/release-notes-5.x.html#release-notes-5.4.0

Let us know if you need more details.

Thanks,
Vignesh

Hello @vigneshshanmugam, Is there any config to disabled this compress at apm init?

Hi @alexandreservian ,

Unfortunately not, as its not a breaking change, we decided to implement this functionality by default as its a huge performance improvement.

If its for debugging, you could load the page from Safari/Firefox where the Compression specification is not supported.

Thanks,
Vignesh

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.