PHP code example of jcleng / opentelemetry-exporter-zincsearch
1. Go to this page and download the library: Download jcleng/opentelemetry-exporter-zincsearch 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/ */
jcleng / opentelemetry-exporter-zincsearch example snippets
use OpentelemetryExporter\OpenTelemetry\Exporter\ZincSearch\SpanExporterFactory;
$exporter = (new SpanExporterFactory([
'zinc_url' => 'http://127.0.0.1:4080',
'zinc_password' => 'BASE64_ENCODED_CREDENTIALS',
'index_name' => 'my_traces',
'timeout' => 5.0,
]))->create();