opentelemetry-php/tests/Unit/SDK/Trace
Brett McBride 0b43fac729
refactor otlp exporter (#838)
* merge otlp exporters
continuing on from Nevay's work, this removes the individual OtlpHttp and OtlpGrpc exporters, and replaces with
Otlp\Exporter using a transport to manage grpc and http/protobuf complexity.

* tidy

* use mockery overload instead of prototype clone

* making all smoke-test examples work

* removing startBatch
verified that the call attributes have the same values when using TraceServiceClient

* tidy

* tidy

* Revert "use mockery overload instead of prototype clone"

This reverts commit bbb685b4d1.
Mocking proto-generated files segfaults with ext-protobuf (which is harder to diagnose when running in a child process, which
was required for fancy mockery mocking of "new". So, back to the prototype approach, and skip the tests if ext-protobuf enabled.

* tests without mocking protobuf

* test

* typo

* reverting FromConnectionStringInterface

* grpc headers

* revert to dumb transports, handle multiple protocols

* tidy, adding initial otlp json support

* self-review

* linting

* remove redundant interface

* Revert "remove redundant interface"

This reverts commit 350d40cdfe.

* fix getFloat

Co-authored-by: Tobias Bachert <git@b-privat.de>

* move withSignal into otlp-specific interface

* moving exporter/transport env handling into a new factory

* linting

* remove unused code

* tidy

* moving OtlpHttp into Otlp

* removing OtlpTransportFactoryInterface

* fix style

* fixing psalm error

* addressing review feedback

* replacing removed code

* fixing example

Co-authored-by: Tobias Bachert <git@b-privat.de>
2022-11-02 08:31:48 -04:00
..
Behavior adding covers annotations to all tests (#540) 2022-01-07 09:33:08 +11:00
Sampler Add interfaces for `Context` and `ContextKey` (#820) 2022-09-19 09:40:32 +10:00
SpanExporter Change `SpanExporter::export()` return value to boolean (#827) 2022-09-19 07:27:51 +10:00
SpanProcessor Add self-diagnostic metrics to `BatchSpanProcessor` (#828) 2022-10-12 11:02:34 -04:00
EventTest.php Refactor Attributes (#623) 2022-03-19 23:51:47 -04:00
ExporterFactoryTest.php refactor otlp exporter (#838) 2022-11-02 08:31:48 -04:00
ImmutableSpanTest.php Make `AttributesInterface` immutable (#724) 2022-06-23 20:54:03 +10:00
LinkTest.php Make `AttributesInterface` immutable (#724) 2022-06-23 20:54:03 +10:00
NonRecordingSpanTest.php adding covers annotations to all tests (#540) 2022-01-07 09:33:08 +11:00
RandomIdGeneratorTest.php Refactor span context (#801) 2022-09-21 10:37:19 -04:00
SamplerFactoryTest.php Refactor Environment Variable Handling (#561) 2022-02-02 09:54:32 -05:00
SamplingResultTest.php Make `AttributesInterface` immutable (#724) 2022-06-23 20:54:03 +10:00
SpanLimitsBuilderTest.php Drop general identity attributes by default (#843) 2022-10-12 09:12:54 +11:00
SpanProcessorFactoryTest.php Prevent concurrent `::export()` calls in span processor (#788) 2022-08-24 22:52:04 +10:00
SpanTest.php Refactor span context (#801) 2022-09-21 10:37:19 -04:00
StatusDataTest.php Add phpunit annotations for compliance tests (#670) 2022-05-07 09:02:29 +10:00
TracerProviderFactoryTest.php adding OTEL_SDK_DISABLED support (#833) 2022-10-07 16:47:54 +11:00
TracerProviderTest.php Remove automatic `::shutdown()`, add `ShutdownHandler::register()` (#760) 2022-07-16 10:56:52 +02:00
TracerSharedStateTest.php adding covers annotations to all tests (#540) 2022-01-07 09:33:08 +11:00
TracerTest.php return no-op span builder after shutdown (#765) 2022-07-17 15:27:20 +02:00