Download the PHP package oat-sa/lib-correlation-ids without Composer
On this page you can find all versions of the php package oat-sa/lib-correlation-ids. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download oat-sa/lib-correlation-ids
More information about oat-sa/lib-correlation-ids
Files in oat-sa/lib-correlation-ids
Download oat-sa/lib-correlation-ids
More information about oat-sa/lib-correlation-ids
Files in oat-sa/lib-correlation-ids
Vendor oat-sa
Package lib-correlation-ids
Short Description OAT Correlation Ids Library
License GPL-2.0-only
Package lib-correlation-ids
Short Description OAT Correlation Ids Library
License GPL-2.0-only
Please rate this library. Is it a good library?
Informations about the package lib-correlation-ids
Correlation Ids Library
PHP library for correlation ids management.
Table of contents
- Installation
- Principles
- Usage
- Tests
Installation
Principles
This library provides an interface that will allow access to 3 kind of correlation ids:
getCurrentCorrelationId()
: for the current application process.getParentCorrelationId()
: for the parent application that calls your application, if any.getRootCorrelationId()
: for the root application from which all the calls originate in the first place.
Example:
Usage
From HTTP context
Note: you can customize the used HTTP headers names by providing you own CorrelationIdsHeaderNamesProviderInterface implementation and pass it to the CorrelationIdsRegistryBuilder
constructor.
Manually
Tests
To run tests:
Note: see phpunit.xml.dist for available test suites.
All versions of lib-correlation-ids with dependencies
PHP Build Version
Package Version
The package oat-sa/lib-correlation-ids contains the following files
Loading the files please wait ....