Skip to content

Commit e2c93d1

Browse files
committed
Merge branch 'php8dot2' of github.com:moveis-simonetti/php-apache-oci8-composer into php8dot2-mongodb
2 parents 844fa6b + eaffb7d commit e2c93d1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

bin/newrelic-setup

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ if [[ ${NR_ENABLED} == true ]]; then
44
sed -i -e "s/"REPLACE_WITH_REAL_KEY"/${NR_LICENSE_KEY}/g" /usr/local/etc/php/conf.d/newrelic.ini
55
sed -i -e "s/PHP Application/${NR_APP_NAME}/g" /usr/local/etc/php/conf.d/newrelic.ini
66
echo "newrelic.enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
7+
8+
if [[ ${NR_DISTRIBUTED_TRACING_ENABLED} == true ]]; then
9+
echo "newrelic.distributed_tracing_enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
10+
fi
11+
12+
if [[ ${NR_APPLICATION_LOGGING_ENABLED} == true ]]; then
13+
echo "newrelic.application_logging.enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
14+
fi
15+
716
else
817
echo "newrelic.enabled = false" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
918
fi

configs/headers.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Header append X-Request-UID "%{UNIQUE_ID}e"

0 commit comments

Comments
 (0)