Download the PHP package open-telemetry/opentelemetry-auto-wordpress without Composer
On this page you can find all versions of the php package open-telemetry/opentelemetry-auto-wordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download open-telemetry/opentelemetry-auto-wordpress
More information about open-telemetry/opentelemetry-auto-wordpress
Files in open-telemetry/opentelemetry-auto-wordpress
Package opentelemetry-auto-wordpress
Short Description OpenTelemetry auto-instrumentation for Wordpress
License Apache-2.0
Homepage https://opentelemetry.io/docs/php
Informations about the package opentelemetry-auto-wordpress
This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
OpenTelemetry Wordpress auto-instrumentation
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.
Requirements
- OpenTelemetry extension
- OpenTelemetry SDK + exporter (required to actually export traces)
- WordPress installation
- OpenTelemetry SDK Autoloading configured
Overview
OpenTelemetry depends on composer, unlike Wordpress. This extension was developed against johnpbloch/wordpress-core, but it should also work with other installation methods.
An example in Docker of extending the official Wordpress image to enable auto-instrumentation: https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/examples/instrumentation/Wordpress
apache
Configure (eg via .htaccess
) a PHP prepend file to initialize composer:
This will install the composer autoloader before running Wordpress. As part of composer autoloading, scripts are executed for installed modules, importantly:
- OpenTelemetry SDK Autoloader
- this library's
_register.php
file
Installation via composer
Configuration
The extension can be disabled via runtime configuration:
All versions of opentelemetry-auto-wordpress with dependencies
ext-opentelemetry Version *
open-telemetry/api Version ^1.0
open-telemetry/sem-conv Version ^1.24
nyholm/psr7 Version ^1
nyholm/psr7-server Version ^1