PHP code example of uru / opentelemetry-auto-bitrix-component
1. Go to this page and download the library: Download uru/opentelemetry-auto-bitrix-component library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
uru / opentelemetry-auto-bitrix-component example snippets
use Bitrix\Main\HttpRequest;
use Bitrix\Main\Request;
public function getRequest(): Request|HttpRequest
{
return $this->request;
}
shell
OTEL_PHP_DISABLED_INSTRUMENTATIONS=bitrix.component