Automated performance testing and telemetry with Drupal core.
To add Gander to an existing project, including a Drupal core clone, use this repo instead: https://github.com/tag1consulting/ddev-gander
If you don't have a working Drupal project with ddev yet, you can use this repo for now.
- Install ddev
- Clone this repo.
ddev start
ddev composer install
cp phpunit.xml.example web/core/phpunit.xml
- Once these steps are working, do the following to run tests and log traces.
ddev ssh
OTEL_COLLECTOR=http://otel-collector:4318/v1/traces vendor/bin/phpunit --group OpenTelemetry -c web/core/phpunit.xml
- Run either all of the tests or at least one, three times each or more for series data to begin showing in the dashboard.
- Go to http://localhost:3000/dashboards to get started viewing metrics and traces.
If you are running on an M1 or M2 Mac, add the following steps to get chromedriver working.
cd .ddev
rm docker-compose.chromedriver.yml
ddev get ddev/ddev-selenium-standalone-chrome