Commit Graph

13 Commits

Author SHA1 Message Date
Dalibor Karlović 16c3f97743
chore: add static analysis for tests, examples (#208) 2020-11-04 23:00:11 -05:00
Dalibor Karlović 72ff1f2b6c
Issues found by Psalm / PHPStan level 4 and CS Fixer (#185)
* fix: small issues found by Psalm level 4

* fix: small issues found by PHPStan level 4
2020-10-04 12:11:37 -04:00
André Luis Gomes dd1d1d704d
Fix AlwaysOffTraceExample.php Sample (#195)
The `$span->addEvent()` waits a $timestamp as second argument, but
we are sending `new Attributes([...` as aprameter.
2020-10-04 12:10:17 -04:00
Beniamin c2476dfda9
split Trace SDK in sub-namespaces and create new area for contrib (#97)
move all tests in the same root directory - will be easy to follow

remove errant test and whitelist the library code for coverage instead of tests

inherit JaegerExporter from Zipkin since we are using the zipkin protocol to export to Jaeger
2020-06-17 11:24:08 -04:00
Bob Strecansky 55cc8b6ff1 Update Examples with SpanKind (#82)
* Update Examples with SpanKind

* make style
2020-05-15 16:27:38 -04:00
Beniamin e5eda43ad9
Jaeger exporter (#70)
* make zipkin-exporter implementation simpler

* add Jaeger exporter and fix zipkin exporter timestamps

* move zipkin converter logic outside of exporters

* start containers before running examples

* fix open-telemetry badge codecov.io url

* fix phpunit whitelist after api and sdk splitting
2020-04-05 16:05:52 -04:00
lalex 783ccdde06
Built-in samplers implementation (#66)
* Built-in samplers implementation
- AlwaysOffSampler
- AlwaysOnSampler
- AlwaysParentSampler
- ProbabilitySampler

* Fix code standards

* Apply an API interface refactoring

* Fix sampler examples

* Fix coding standards

* Move files around, fix small issues

* Fix doc block and coding standards

Co-authored-by: Levi Morrison <levi.morrison@datadoghq.com>
2020-04-01 17:53:43 -04:00
Levi Morrison 3262c429ff
Add API Interfaces (#64)
* Migrate src/ to sdk/ and api/

Co-authored-by: Bob Strecansky <bob.strecansky@gmail.com>

* Rename TracerFactory to TracerProvider

This follows opentelemetry/oteps#76.

Also start moving sdk tests into the sdk/Tests folder

* Touch up SpanStatus and ending spans

* Remove getTracerVersion and getTracerName

These aren't described in the spec -- we can add them back later
if we need to, but I suspect they belong only in the SDK, if anywhere.

* Update phan config and fix some warnings

* Start writing SpanOptions

Also start fixing examples, currently broken

* Fix PhpUnit 9 incompatibilities

Co-authored-by: Bob Strecansky <bob.strecansky@gmail.com>
2020-03-26 19:31:19 -04:00
Alan Storm d8a554b598
Fixes Broken Example Code and Link in README (#59)
* Give examples working code

* Fix link in README

* php-cs changes
2020-02-12 21:40:44 -05:00
Nenad Stojanovikj 7fe89db0ae Add php-cs-fixer (#50)
* Add php-cs-fixer to dev requirements

* Ignore php-cs-fixer cache file

* Add style guide configuration file

* Correct style of all PHP files

* Add Makefile target for style fixing
2020-01-24 08:15:22 -05:00
Beniamin 3d56cb7adf implement ZipkinExporter::export, and Process spans in Tracer (#41) 2020-01-20 21:48:15 -05:00
Beniamin 0991f72146 TracerFactory implementation (#38)
* implement TracerFactory, begin migration to recommended library layout, use docker-compose and make to simplify development

* add tests for all TracerFactory method, move TraceFactory configuration in constructor

* run phan in travis-ci build

* rename namespace Tracing into Trace
2020-01-07 08:39:14 -05:00
Bob Strecansky c863d37cff
Performing Always and Never Sample Steps (#30)
* Performing Always and Never Sample Steps

* Updating examples to remove builder

* Updating examples to remove builder

* Removing builder from always off trace example
2019-12-10 13:48:22 -05:00