opentelemetry-php/tests/Unit/SDK/Trace/Sampler
Tobias Bachert a22f9f1077
Cleanup/fix context package (#711)
* Remove `Context::withValue()`

Creates a hidden `Scope` when called without `$parent`.

* Remove `Context::detach(Scope)`

* Remove static `Context::attach()`

* Add missing typehints

* Use loop instead of recursion

* Fix `MultiTextMapPropagator::extract()` clearing context

* Fix `TextMapPropagator::composite()` for named arguments

* Make `Context` constructor non-public

* Make `Context` and `ContextKey` final

* Fix `ArrayAccessGetterSetter`

Resolves inconsistencies in case-insensitive handling.

* Fix psalm

* Fix cannot mock final class `Context`

Revert after introducing ContextInterface?

* Apply feedback and remove obsolete parentheses

* Use psalm-suppress instead of assert
2022-06-16 08:17:59 -04:00
..
AlwaysOffSamplerTest.php Cleanup/fix context package (#711) 2022-06-16 08:17:59 -04:00
AlwaysOnSamplerTest.php Cleanup/fix context package (#711) 2022-06-16 08:17:59 -04:00
ParentBasedTest.php Cleanup/fix context package (#711) 2022-06-16 08:17:59 -04:00
TraceIdRatioBasedSamplerTest.php Cleanup/fix context package (#711) 2022-06-16 08:17:59 -04:00