scoutapp / scout_apm_python

ScoutAPM Python Agent. Supports Django, Flask, and many other frameworks.
https://scoutapm.com
MIT License
69 stars 21 forks source link

Add LOG_PAYLOAD_CONTENT configuration #724

Closed jrothrock closed 2 years ago

jrothrock commented 2 years ago

When this configuration is set to true, we will log the payload that is sent to core-agent

This will create parity with the PHP agent: https://github.com/scoutapp/scout-apm-php/blob/master/src/Agent.php#L497-L503

tim-schilling commented 2 years ago

@jrothrock For the case when LOG_PAYLOAD_CONTENT is false, should this log anything? I notice that the php agent does. It also includes the number of spans, but that count is already logged in the python agent.

tim-schilling commented 2 years ago

Never mind. I see there's already a log for when a batched command is sent over the wire. I'll add in the payload to that message when applicable.