Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 6a249bd

Browse files
committed
wip: otel
1 parent 965e015 commit 6a249bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Support/MeasureTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
namespace Overtrue\LaravelOpenTelemetry\Tests\Support;
44

55
use Mockery;
6+
use OpenTelemetry\API\Globals;
67
use OpenTelemetry\API\Trace\SpanBuilderInterface;
78
use OpenTelemetry\API\Trace\SpanInterface;
89
use OpenTelemetry\API\Trace\TracerInterface;
910
use OpenTelemetry\Context\Context;
11+
use OpenTelemetry\Context\ContextKeys;
1012
use OpenTelemetry\Context\Propagation\TextMapPropagatorInterface;
1113
use OpenTelemetry\Context\ScopeInterface;
1214
use OpenTelemetry\SDK\Trace\RandomIdGenerator;
@@ -105,9 +107,7 @@ public function testGetTraceId()
105107

106108
public function testGetPropagator()
107109
{
108-
$instance = Mockery::mock(TextMapPropagatorInterface::class);
109-
$this->instance(TextMapPropagatorInterface::class, $instance);
110-
$this->assertSame($instance, Measure::propagator());
110+
$this->assertSame(Globals::propagator(), Measure::propagator());
111111
}
112112

113113
public function testPropagationHeaders()

0 commit comments

Comments
 (0)