Skip to content

Commit 21c82d2

Browse files
authored
Update WordPress Example (#431)
1 parent b10631f commit 21c82d2

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

examples/instrumentation/Wordpress/autoinstrumented-wordpress.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Pull in dependencies with composer
2-
FROM composer:2.5 as build
2+
FROM composer:2.8 as build
33
COPY composer.json ./
44
RUN composer install --ignore-platform-reqs
55

6-
FROM wordpress:6.7.1
6+
FROM wordpress:6.8
77
# Install the opentelemetry and protobuf extensions
88
RUN pecl install opentelemetry protobuf
99
COPY otel.php.ini $PHP_INI_DIR/conf.d/.

examples/instrumentation/Wordpress/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ services:
4242
# OpenTelemetry collector. Make sure you set USERID and GOOGLE_APPLICATION_CREDENTIALS
4343
# environment variables for your container to authenticate correctly
4444
otel-collector:
45-
image: otel/opentelemetry-collector-contrib:0.91.0
45+
image: otel/opentelemetry-collector-contrib:0.132.0
4646
volumes:
4747
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
4848

examples/instrumentation/Wordpress/composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
"minimum-stability": "beta",
66
"require": {
77
"open-telemetry/opentelemetry-auto-wordpress": "^0.0.16",
8-
"open-telemetry/sdk": "^1.1",
9-
"open-telemetry/exporter-otlp": "^1.1",
8+
"open-telemetry/sdk": "^1.7",
9+
"open-telemetry/exporter-otlp": "^1.3",
1010
"php-http/guzzle7-adapter": "^1.1"
1111
},
1212
"config": {
1313
"allow-plugins": {
14-
"php-http/discovery": true
14+
"php-http/discovery": true,
15+
"tbachert/spi": true
1516
}
1617
}
1718
}

examples/instrumentation/Wordpress/otel-collector-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ receivers:
22
otlp:
33
protocols:
44
http:
5+
endpoint: 0.0.0.0:4318
56

67
processors:
78
batch:

0 commit comments

Comments
 (0)