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.

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

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.