PHP APM Agent — Log HTTP headers and payload under transaction metadata

Hi!

Is there a way to log HTTP headers and payload under transaction metadata for PHP agent? I could not find any solution to how to do that.

Hi Anton,

You might be able to set additional context to the transaction like the following:

ElasticApm::getCurrentTransaction()->context()->setLabel('userId', Auth::id());

That way you can implement additional information while processing the transaction with its spans.