diff --git a/ydb/core/tx/datashard/datashard_pipeline.cpp b/ydb/core/tx/datashard/datashard_pipeline.cpp index 4c2cd578930b..1e0c3353c9af 100644 --- a/ydb/core/tx/datashard/datashard_pipeline.cpp +++ b/ydb/core/tx/datashard/datashard_pipeline.cpp @@ -1729,9 +1729,11 @@ EExecutionStatus TPipeline::RunExecutionPlan(TOperation::TPtr op, auto status = unit.Execute(op, txc, ctx); op->AddExecutionTime(timer.GetTime()); - unitSpan.Attribute("Type", TypeName(unit)) - .Attribute("Status", static_cast(status)) - .EndOk(); + if (unitSpan) { + unitSpan.Attribute("Type", TypeName(unit)) + .Attribute("Status", static_cast(status)) + .EndOk(); + } LOG_TRACE_S(ctx, NKikimrServices::TX_DATASHARD, "Execution status for " << *op << " at " << Self->TabletID()