Skip to content

Commit

Permalink
Fix SpanBench
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Oct 18, 2023
1 parent f90a3cb commit 0f2e50e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Benchmark/SpanBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use PhpBench\Benchmark\Metadata\Annotations\Revs;
use Sentry\Tracing\Span;
use Sentry\Tracing\TransactionContext;
use function Sentry\continueTrace;

final class SpanBench
{
Expand All @@ -23,8 +24,8 @@ final class SpanBench

public function __construct()
{
$this->context = TransactionContext::fromSentryTrace('566e3688a61d4bc888951642d6f14a19-566e3688a61d4bc8-0');
$this->contextWithTimestamp = TransactionContext::fromSentryTrace('566e3688a61d4bc888951642d6f14a19-566e3688a61d4bc8-0');
$this->context = continueTrace('566e3688a61d4bc888951642d6f14a19-566e3688a61d4bc8-0', '');
$this->contextWithTimestamp = continueTrace('566e3688a61d4bc888951642d6f14a19-566e3688a61d4bc8-0', '');
$this->contextWithTimestamp->setStartTimestamp(microtime(true));
}

Expand Down

0 comments on commit 0f2e50e

Please sign in to comment.