PHP code example of kuiper / tracing-client
1. Go to this page and download the library: Download kuiper/tracing-client 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/ */
kuiper / tracing-client example snippets
return [
'application' => [
'tracing' => [
'enabled' => env('TRACING_ENABLED') === 'true',
'debug_id_header_key' => env('TRACING_DEBUG_ID_HEADER', 'tracing-debug-id'),
'service_name' => env('TRACING_SERVICE_NAME'),
'tags' => env('TRACING_TAGS'),
'sampler' => [
'type' => env('TRACING_SAMPLER_TYPE'),
'param' => env('TRACING_SAMPLER_PARAM')
],
],
]
]