2017 © Pedro Peláez
 

library laravel-correlational-id

A package to add Correlational ID to Laravel

image

devitek/laravel-correlational-id

A package to add Correlational ID to Laravel

  • Sunday, August 14, 2016
  • by CaporalDead
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

Add Correlational ID capability to Laravel

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Installing

composer require devitek/laravel-correlational-id

Add support to HTTP messages

Add this line to your app/Kernel.php file :, (*2)

<?php

// ...

    protected $middleware = [
        CheckForMaintenanceMode::class,
        CorrelationalId::class,
        // ...
    ];

// ...

Add processor to Monolog

Add this line to your app/Kernel.php file :, (*3)

<?php

// ...

    protected $middleware = [
        CheckForMaintenanceMode::class,
        CorrelationalId::class,
        CorrelationalIdMonolog::class,
        // ...
    ];

// ...

Add tag context to Sentry

Add this line to your app/Kernel.php file :, (*4)

<?php

// ...

    protected $middleware = [
        CheckForMaintenanceMode::class,
        CorrelationalId::class,
        CorrelationalIdSentry::class,
        // ...
    ];

// ...

How it works ?

HTTP message

When your app receive an HTTP message it will try to read the X-Correlational-Id header from the request or generate a new one and add the same one to the response. It will also attach it as a request attribute., (*5)

Monolog

It will try to get the correlational ID from the request attributes and push a processor into monolog., (*6)

Sentry

It will try to get the correlational ID from the request attributes and add a tag context to the sentry client., (*7)

Enjoy it ! Feel free to fork :) !, (*8)

The Versions

14/08 2016

dev-master

9999999-dev

A package to add Correlational ID to Laravel

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

14/08 2016

1.0.2

1.0.2.0

A package to add Correlational ID to Laravel

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

14/08 2016

1.0.1

1.0.1.0

A package to add Correlational ID to Laravel

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

19/07 2016

1.0.0

1.0.0.0

A package to add Correlational ID to Laravel

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT