Strip Headers/Environment Variables from payloads

Currently we're seeing that the Ruby APM agent inserting environment variables and headers. Is there any way to strip this information?

Hi and thanks for your question.

Seems like you have already found the corresponding issue: https://github.com/elastic/apm-agent-ruby/issues/275

There is currently no option do disable recording of env but it seems to me like it would make a lot of sense. Especially when configuring something like ELASTIC_APM_SECRET_TOKEN in environment variables, you'd probably want do disable env recording.

Cheers,
Felix