|
||
---|---|---|
.github/ISSUE_TEMPLATE | ||
.phan | ||
examples | ||
resources | ||
src | ||
tests | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
composer.json | ||
composer.lock | ||
phpunit.xml.dist |
README.md
OpenTelemetry php library
Our meetings are held weekly on Wednesdays at 10:30am PST / 1:30pm EST. Please reach out on gitter.im if you'd like to be invited. The public calendar invite will be shared once it becomes avaiable.
Installation
The recommended way to install the library is through Composer:
$ composer require open-telemetry/opentelemetry
Examples
You can use the examples/AlwaysSampleTraceExample.php file to test out the reference implementation we have. This can be easily executed with docker by running ./resources/example-using-docker
from the root of the repository.
Static Analysis
We use Phan for static analysis. Currently our phan configuration is just set with a standard default analysis configuration. You can use our phan docker hook to easily perform static analysis on your changes:
./resources/phan-using-docker
Testing
To make sure the tests in this repo work as you expect, you can use the included docker test wrapper:
1.) Make sure that you have docker installed
2.) Execute ./resources/test-using-docker
from your bash compatible shell.
Caveats
The Span Links concept is not yet implemented.