PHP Classes

File: config/correlation.php

Recommend this page to a friend!
  Classes of Mohamed Ahmed   Laravel Correlation   config/correlation.php   Download  
File: config/correlation.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: Laravel Correlation
Generate a correlation identifier
Author: By
Last change: new feature set
Date: 18 days ago
Size: 749 bytes
 

Contents

Class file image Download
<?php

return [
   
'header' => env('CORRELATION_HEADER', 'X-Correlation-ID'),

   
// Define ID generation method: uuid, timestamp, hash
   
'generator' => env('CORRELATION_GENERATOR', 'uuid'),

   
// Enable logging integration
   
'log' => true,

   
// Enable correlation ID propagation in HTTP requests
   
'propagate' => true,

   
// Enable queue support (attaching correlation ID to jobs)
   
'queue' => true,

   
// Enable storing correlation IDs in cache or database
   
'storage' => env('CORRELATION_STORAGE', 'cache'), // options: cache, database, none

    // Alternate header names for compatibility
   
'alternate_headers' => ['X-Request-ID', 'Trace-ID'],

   
'auto_register_middleware' => env('CORRELATION_AUTO_REGISTER', true),
];