Skip to content

Commit

Permalink
Merge branch 'php8dot2' of github.com:moveis-simonetti/php-apache-oci…
Browse files Browse the repository at this point in the history
…8-composer into php8dot2-mongodb
  • Loading branch information
lucassabreu committed Jul 26, 2024
2 parents 844fa6b + eaffb7d commit e2c93d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/newrelic-setup
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ if [[ ${NR_ENABLED} == true ]]; then
sed -i -e "s/"REPLACE_WITH_REAL_KEY"/${NR_LICENSE_KEY}/g" /usr/local/etc/php/conf.d/newrelic.ini
sed -i -e "s/PHP Application/${NR_APP_NAME}/g" /usr/local/etc/php/conf.d/newrelic.ini
echo "newrelic.enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini

if [[ ${NR_DISTRIBUTED_TRACING_ENABLED} == true ]]; then
echo "newrelic.distributed_tracing_enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
fi

if [[ ${NR_APPLICATION_LOGGING_ENABLED} == true ]]; then
echo "newrelic.application_logging.enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
fi

else
echo "newrelic.enabled = false" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
fi
1 change: 1 addition & 0 deletions configs/headers.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Header append X-Request-UID "%{UNIQUE_ID}e"

0 comments on commit e2c93d1

Please sign in to comment.