Skip to content

Commit 4697b75

Browse files
committed
Added missing finish call
1 parent 51e9c3f commit 4697b75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Bridge/BackgroundSpanHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public function start(Request $request)
4040

4141
public function finish()
4242
{
43+
if (null === $this->span) {
44+
return $this;
45+
}
46+
$this->tracer->finish($this->span);
4347

48+
return $this;
4449
}
4550
}

0 commit comments

Comments
 (0)