We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b203761 + f9c0614 commit cd1753cCopy full SHA for cd1753c
src/OpenTracing.php
@@ -19,6 +19,9 @@ class OpenTracing extends \CApplicationComponent
19
/** @var string id of sentry component */
20
public $sentryId;
21
22
+ /** @var bool if root node should be closed on end request */
23
+ public $closeRootNode = true;
24
+
25
/** @var Scope */
26
private $rootScope;
27
@@ -141,7 +144,9 @@ public function handleBeginRequestEvent(\CEvent $event)
141
144
*/
142
145
public function handleEndRequestEvent(\CEvent $event)
143
146
{
- $this->rootScope->close();
147
+ if ($this->closeRootNode) {
148
+ $this->rootScope->close();
149
+ }
150
$this->tracer->flush();
151
}
152
0 commit comments