cbos/opentelemetry-auto-joomla
Composer 安装命令:
composer require cbos/opentelemetry-auto-joomla
包简介
OpenTelemetry auto-instrumentation for Joomla
README 文档
README
This plugin is inspired by https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/Wordpress and focussed on Joomla
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)
- Joomla installation
- OpenTelemetry SDK Autoloading configured
Overview
OpenTelemetry depends on composer. This extension was developed against Joomla docker
An example in Docker of extending the official Joomla image to enable auto-instrumentation: example
apache
Configure (eg via .htaccess) a PHP prepend file to initialize composer:
php_value auto_prepend_file /var/www/vendor/autoload.php
This will install the composer autoloader before running Joomla. As part of composer autoloading, scripts are executed for installed modules, importantly:
- OpenTelemetry SDK Autoloader
- this library's
_register.phpfile
Installation via composer
$ composer require cbos/opentelemetry-auto-joomla
Configuration
The extension can be disabled via runtime configuration:
OTEL_PHP_DISABLED_INSTRUMENTATIONS=joomla
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2024-10-24