The main purpose of a trap is to stop smells. So if the drain is not on a foul system then there is no need for one in this context.
The amount of debris and grains off a roof, going directly into a a drain is very small but over long time periods. This debris would normally just wash down the drain run with the rain and be no problem, but if a trap is fitted, it will naturally collect there and will consequently require cleaning out - giving the impression that its a lot of debris, when in fact its just very small amounts collected over a very long period of time.
If the drain is in fact a gully, then it may be subject to more debris entering it. Normally there would still be no need for a trap, but if excessive soil, leaves or other crap is expected, then a trap may help cleaning out - but its still most likely that the debris will still just wash down the drain.
If there are silted up drain runs, then that is due to other problems - and the fact that they are silted up anyway defeats the fitting of a trap - it has not helped and prevented silted drains has it!
Thats why I would save the cost and time of fitting a trap which would be unnecessary.
In the OP context, relay the pipe to a proper fall to the trench, fit a bend or rest bend, downpipe into the drain with a sealed connector, and there will be no problem.