From cdd7ad020e165fe680703b6d3319b908b682fb7a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 20 Oct 2023 17:12:29 +0300 Subject: jaeger-client -> opentelemetry --- .../Jaeger/Sampler/ProbablisticSamplerTest.php | 68 ---------------------- 1 file changed, 68 deletions(-) delete mode 100644 vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Sampler/ProbablisticSamplerTest.php (limited to 'vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Sampler/ProbablisticSamplerTest.php') diff --git a/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Sampler/ProbablisticSamplerTest.php b/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Sampler/ProbablisticSamplerTest.php deleted file mode 100644 index 2840ebf8c..000000000 --- a/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Sampler/ProbablisticSamplerTest.php +++ /dev/null @@ -1,68 +0,0 @@ -isSampled($traceId); - - $this->assertEquals($decision, $sampled); - $this->assertEquals([ - SAMPLER_TYPE_TAG_KEY => SAMPLER_TYPE_PROBABILISTIC, - SAMPLER_PARAM_TAG_KEY => $rate, - ], $tags); - - $sampler->close(); - } - - public function samplerProvider() - { - return [ - [1.0, PHP_INT_MAX-1, true], - [0, 0, false], - [0.5, PHP_INT_MIN + 10, true], - [0.5, PHP_INT_MAX - 10, false], - ]; - } - - /** - * @test - * @dataProvider rateProvider - * @param mixed $rate - */ - public function shouldThrowOutOfBoundsExceptionInCaseOfInvalidRate($rate) - { - $this->expectException(OutOfBoundsException::class); - $this->expectExceptionMessage('Sampling rate must be between 0.0 and 1.0.'); - - new ProbabilisticSampler($rate); - } - - public function rateProvider() - { - return [ - [1.1], - [-0.1], - [PHP_INT_MAX], - [PHP_INT_MIN], - ]; - } -} -- cgit v1.2.3