File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ class StackSpanManager implements SpanManagerInterface
11
11
{
12
12
private $ stack ;
13
13
14
+ /** @var SpanContext|null */
14
15
private $ context ;
15
16
16
17
public function __construct ()
@@ -24,6 +25,7 @@ public function __construct()
24
25
public function reset (): ResettableInterface
25
26
{
26
27
$ this ->stack = new \SplStack ();
28
+ $ this ->context = null ;
27
29
28
30
return $ this ;
29
31
}
@@ -36,8 +38,9 @@ public function reset(): ResettableInterface
36
38
public function assign (SpanContext $ context ): InjectableInterface
37
39
{
38
40
$ this ->context = $ context ;
41
+ $ this ->stack = new \SplStack ();
39
42
40
- return $ this -> reset () ;
43
+ return $ this ;
41
44
}
42
45
43
46
/**
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ public function assign(SpanContext $context): InjectableInterface
64
64
public function reset (): ResettableInterface
65
65
{
66
66
$ this ->manager ->reset ();
67
+ $ this ->debugId = '' ;
67
68
68
69
return $ this ;
69
70
}
You can’t perform that action at this time.
0 commit comments