|
39 | 39 | use function Sentry\continueTrace; |
40 | 40 | use function Sentry\getBaggage; |
41 | 41 | use function Sentry\getTraceparent; |
42 | | -use function Sentry\getW3CTraceparent; |
43 | 42 | use function Sentry\init; |
44 | 43 | use function Sentry\startTransaction; |
45 | 44 | use function Sentry\trace; |
@@ -455,50 +454,6 @@ public function testTraceparentWithTracingEnabled(): void |
455 | 454 | $this->assertSame('566e3688a61d4bc888951642d6f14a19-566e3688a61d4bc8', $traceParent); |
456 | 455 | } |
457 | 456 |
|
458 | | - public function testW3CTraceparentWithTracingDisabled(): void |
459 | | - { |
460 | | - $propagationContext = PropagationContext::fromDefaults(); |
461 | | - $propagationContext->setTraceId(new TraceId('566e3688a61d4bc888951642d6f14a19')); |
462 | | - $propagationContext->setSpanId(new SpanId('566e3688a61d4bc8')); |
463 | | - |
464 | | - $scope = new Scope($propagationContext); |
465 | | - |
466 | | - $hub = new Hub(null, $scope); |
467 | | - |
468 | | - SentrySdk::setCurrentHub($hub); |
469 | | - |
470 | | - $traceParent = getW3CTraceparent(); |
471 | | - |
472 | | - $this->assertSame('00-566e3688a61d4bc888951642d6f14a19-566e3688a61d4bc8-00', $traceParent); |
473 | | - } |
474 | | - |
475 | | - public function testW3CTraceparentWithTracingEnabled(): void |
476 | | - { |
477 | | - $client = $this->createMock(ClientInterface::class); |
478 | | - $client->expects($this->once()) |
479 | | - ->method('getOptions') |
480 | | - ->willReturn(new Options([ |
481 | | - 'traces_sample_rate' => 1.0, |
482 | | - ])); |
483 | | - |
484 | | - $hub = new Hub($client); |
485 | | - |
486 | | - SentrySdk::setCurrentHub($hub); |
487 | | - |
488 | | - $spanContext = (new SpanContext()) |
489 | | - ->setTraceId(new TraceId('566e3688a61d4bc888951642d6f14a19')) |
490 | | - ->setSpanId(new SpanId('566e3688a61d4bc8')) |
491 | | - ->setSampled(true); |
492 | | - |
493 | | - $span = new Span($spanContext); |
494 | | - |
495 | | - $hub->setSpan($span); |
496 | | - |
497 | | - $traceParent = getW3CTraceparent(); |
498 | | - |
499 | | - $this->assertSame('00-566e3688a61d4bc888951642d6f14a19-566e3688a61d4bc8-01', $traceParent); |
500 | | - } |
501 | | - |
502 | 457 | public function testBaggageWithTracingDisabled(): void |
503 | 458 | { |
504 | 459 | $propagationContext = PropagationContext::fromDefaults(); |
|
0 commit comments