Skip to content

Commit

Permalink
Move the end span before the span finish logging
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Nov 21, 2023
1 parent 4d22daf commit b55ef92
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions system/jlib/jtrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,13 @@ class CSpan : public CInterfaceOf<ISpan>
{
public:
CSpan() = delete;
~CSpan()

virtual void beforeDispose() override
{
//Record the span as complete before we output the logging for the end of the span
if (span != nullptr)
span->End();
}

virtual void beforeDispose() override
{
if (queryInternalTraceManager().logSpanFinish())
{
StringBuffer out;
Expand Down

0 comments on commit b55ef92

Please sign in to comment.