blob: 5576171a8a6cff3b473a86ae4eabfdfc82bdcfa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
declare(strict_types=1);
namespace OpenTracing;
final class NoopScopeManager implements ScopeManager
{
/**
* {@inheritdoc}
*/
public function activate(Span $span, bool $finishSpanOnClose = ScopeManager::DEFAULT_FINISH_SPAN_ON_CLOSE): Scope
{
return new NoopScope();
}
/**
* {@inheritdoc}
*/
public function getActive(): ?Scope
{
return new NoopScope();
}
}
|