Skip to content

[PHP] Update MetricsClient#submitInteraction()

Phuedx requested to merge work/phuedx/T362214 into main

As reported in https://phabricator.wikimedia.org/T362214, David Martin reported that MetricsClient#submitInteraction() isn't adding the agent property to events submitted to the stream either automatically or when the stream explicitly requested agent_* context attributes. Unfortunately for us, #submitInteraction() isn't adding any context attributes 🙀

Make #submitInteraction() add the context attributes requested by the stream to be consistent with the JS implementation.

Bug: T362214

Edited by Phuedx

Merge request reports