Commit Graph

4 Commits

Author SHA1 Message Date
Kishan Sangani 5de0986f86
Refactored ResourceInfo and ResourceInfoFactory Unit and Integration tests (#664) 2022-04-20 13:47:52 -04:00
lalex 445e932ee0
Extract a Resource schemaUrl merging method (#627) 2022-04-02 07:01:52 +02:00
Yukti 169bdbee57
Add @group annotation to compliance tests for environment variables (#611)
* Add @group annotation to compliance tests

Marked tests for environment variables with phpunit @group annotations to identify
compliance tests. This enables for a way to run just those specific
test and will serve as a useful form of documentation.

* Add trace signal specific notation
2022-03-31 08:49:33 -04:00
Grunet 39c99e5a2f
Map OTEL Resources to Jaeger Process Tags (#636)
* Commit in progress work because Gitpod is weird

* Finish initial stab at the changes

* Forgot to update the exporter

* Add in proper handling of serialization of ResourceInfo

* ksort doesn't return the array...

* Only PHP 8.1 supports key-ed array destructuring

* Creating some adapters to break the hard dependency on Batch to make testing easier

* Refactoring to break the hard dependency on Batch

* Add initial unit tests around the new logic in HttpSender

* Some refactoring of the test's helpers

* Another small refactor

* Some more refactoring

* Rename ResourceInfo's test file to match it's file name

* Move a test our of REsourceInfoTest into a more appropriate file

* Add some basic conformance tests around the new ResourceInfo::serialize method

* Add a test to try and catch future properties that aren't added to ResourceInfo::serialize

* CLean up comments

* Replace string with constant

* Improve variable names

* Cleaning up comment

* Split out tag creation into a helper class

* Phan didn't like the type docs

* Fix style

* Fix tests after merge from main

* Fix coverage reporting issues on 2 of the new files

* Fix style

* Rename vals to values

* Shortening the batch adapter factory method name to create

* Inline a method call

* Inline some method calls

* Shorten factory method to just "create"

* Inline some code

* Split assertions into 3 tests

* Rename parameter in interface implementation for psalm + update the rest of the file to match

Co-authored-by: Timo Michna <timomichna@yahoo.de>
2022-03-28 03:18:32 +02:00