Commit Graph

9 Commits

Author SHA1 Message Date
Timo Michna 8e1e912c92
Move and refactor clock components (#633)
* Move Clock classes to SDK\Common\Time namespace

* Move conversion methods to Util class

* Implement StopWatch

* Implement ClockFactory

* Fix StopwatchInterface

* Finalize ClockFactory

* Implement StopWatchFactory

* Deprecate AbstractClock

* Add BC alias

* Add initial start time to StopWatch

* Unify and optimize SystemClock methods

* Use ClockFactory in Span

* Use ClockFactory in BatchSpanProcessor

* Use ClockInterface in BatchSpanProcessorTest

* Use ClockFactory in SpanData

* Use ClockFactory in examples

* Add millisToNanos Util method

* Use StopWatch in BatchSpanProcessor

* Make Phan happy

* Make Psalm happy

* Make PHPUnit happy

* Remove sllh/composer-versions-check from allowed composer plugins

* Use correct assertion

* Use correct assertion

* Assert difference
2022-03-25 23:26:39 +01:00
Tobias Bachert 6ff577b417
Restructure API / SDK components (Attributes, Clock, Trace) (#521)
* Move Attributes and Clock out of /Trace namespace

Also needed for other components (metrics).

* Move Event and Link to SDK

* Move NoopTracer to API

* Remove `Attribute` abstraction

* Move `Attributes` to SDK by widening API attributes types to `iterable`

* Move `Clockinterface` to SDK

* Fix fqcn usage

* Readd `AttributesInterface` mock

* Move `TraceState` and W3C `TraceContextPropagator` to API
2022-01-01 18:51:36 +11:00
George Dietrich 01c388e02c
Reorganize types (#434)
* Create and move namespaces into `src/` directory

* Update `composer.json`

Move test helpers outside of `SDK` namespace into `Tests`

* Follow PSR naming conventions for interfaces

* Follow PSR naming conventions for abstract classes and traits

* Do a pass on CI configs

* Add examples directory to cs-fixer config

* Fix some erroneously renamed type names
2021-10-03 06:32:46 -04:00
Bob Weinand 546f4c3b85
Fix merging of attributes provided within SamplingResult in Tracer (#384) 2021-07-28 10:27:06 -04:00
Tobias Bachert d908922a79
Remove Tracer::endActiveSpan() (#365) 2021-06-21 10:32:59 -04:00
Onyemenam Ndubuisi 8f2c077eac
Update laravel guide for v.0.0.2 (#361)
* Update laravel guide for v.0.0.2

* Make updates to imports for index.php
2021-06-16 13:25:42 -04:00
Eli Hooten 550df641c1
Remove Note about downgrading Guzzle (#340)
opentelemetry-php now ships with ` "guzzlehttp/guzzle": "^7.1.0"`. See: https://github.com/open-telemetry/opentelemetry-php/blob/main/composer.json#L9

This is out of the box compatible with Laravel 8. Therefore this change removes the note about needing to downgrade Guzzle.
2021-05-27 14:29:28 -04:00
Onyemenam Ndubuisi 08b149fa2a
Feature/make guides accessible (#311)
* Reduce image size for Laravel guide

* Compress symfony guide images

* Add user guide link to readme
2021-04-21 20:48:29 -04:00
Onyemenam Ndubuisi 8bc993ea27
Feature/add laravel integration guide (#306)
* Add Laravel user guide

* make improvements to symfony guide
2021-04-14 15:04:36 -04:00