From a practical standpoint not a code standpoint the pipe to the appliance has a vertical section about 18 inches before the connection with the gas flowing uphill. At a typical 7"wc there isn't going to be any sediment blasting up that pipe. If there needs to be a sediment trap at all it ought to be before the pipe turns upward.(Just to stir up some sediment here) Some of you must have that High pressure gas that is capable of blasting sediment - but me understands what those thingys at the meter are and what goes on in the gas piping system. In the OP the gas piping on the floor a couple of feet below should be checked for potential sediment!
BTW - in 2 months I won't care about sediment or drip traps