close
Skip to content

nenad/opentelemetry-php

 
 

Repository files navigation

OpenTelemetry php library

Gitter Build Status Scrutinizer Code Quality Code Coverage

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.
First you should start zipkin server by running docker-compose up -d and then you can you can easily execute examples using make example. Exported spans can be seen in zipkin at http://127.0.0.1:9411

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: make phan

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 and docker-compose installed 2.) Execute make test from your bash compatible shell.

Caveats

The Span Links concept is not yet implemented.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 98.3%
  • Other 1.7%