Closed bduranleau-nr closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 47.43%. Comparing base (
dbd7f5a
) to head (2c0549a
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Adds support for the PHP Agent Operator.
For PHP, we need to emulate some of the aspects of the typical
newrelic-install.sh
script that the base PHP agent relies on in order to avoid having to inject commands into the application container itself. This logic requires the addition of an annotation (unique to PHP) that requires the user to define the PHP version of the application they intend to instrument. The installation logic will be handled in the initContainer itself, installing the appropriate agent and daemon artifacts, configuration file, and log directories in the shared volume/newrelic-instrumentation
. When the application pod starts up, thePHP_INI_SCAN_DIR
variable will be injected from the operator into the application container which will instruct the PHP binary on the customer system to search for the INI in the shared volume created by the initContainer, allowing for instrumentation.Type of change
Checklist: