PHP code example of particle-academy / prism-opentelemetry
1. Go to this page and download the library: Download particle-academy/prism-opentelemetry 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/ */
particle-academy / prism-opentelemetry example snippets
dotenv
OTEL_PHP_AUTOLOAD_ENABLED=true
OTEL_SERVICE_NAME=my-app
OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:6006 # Phoenix OTLP endpoint
bash
php artisan vendor:publish --tag=prism-opentelemetry-config