PHP code example of nexus-actors / observability-serialization

1. Go to this page and download the library: Download nexus-actors/observability-serialization 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/ */

    

nexus-actors / observability-serialization example snippets


use Monadial\Nexus\Observability\Serialization\TracingMessageSerializer;

$serializer = new TracingMessageSerializer(
    inner: new PhpNativeSerializer(),
    observability: $observability,
    logger: $logger,     // optional — PSR-3 LoggerInterface
);