Skip to content

Commit e496382

Browse files
authored
Do not call TypeName if trace is not used. (#1487)
1 parent a456eb6 commit e496382

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ydb/core/tx/datashard/datashard_pipeline.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -1729,9 +1729,11 @@ EExecutionStatus TPipeline::RunExecutionPlan(TOperation::TPtr op,
17291729
auto status = unit.Execute(op, txc, ctx);
17301730
op->AddExecutionTime(timer.GetTime());
17311731

1732-
unitSpan.Attribute("Type", TypeName(unit))
1733-
.Attribute("Status", static_cast<int>(status))
1734-
.EndOk();
1732+
if (unitSpan) {
1733+
unitSpan.Attribute("Type", TypeName(unit))
1734+
.Attribute("Status", static_cast<int>(status))
1735+
.EndOk();
1736+
}
17351737

17361738
LOG_TRACE_S(ctx, NKikimrServices::TX_DATASHARD,
17371739
"Execution status for " << *op << " at " << Self->TabletID()

0 commit comments

Comments
 (0)