PHP code example of instana / instana-php-sdk

1. Go to this page and download the library: Download instana/instana-php-sdk 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/ */

    

instana / instana-php-sdk example snippets


$tracer = new \Instana\Tracer();

$entry = $tracer->getEntrySpan();

$entry->annotate('http.path_tpl', '/articles/{article}/comments');