You are in California, and the California Plumbing Code says this: ( 1004.0): No trap that has concealed interior partitions, EXCEPT THOSE OF GLASS, PLASTIC, or similar corrosion resisting material, shall be used.
The code further says this ( 301.1) All pipe, pipe fittings, traps, fixtures, material and devices used in a plumbing system shall be listed or labeled by a listing agency.... and ..all materials, fixtures, or devices used or entering into the construction of plumbing systems shall be submitted to the Authority Having Jurisdiction for approval.
That last sentence means a local AHJ ( your city ) may further restrict plumbing installations even if otherwise compliant with state code. That provision is what is still keeping PEX out of a lot of cities in CA, even though the state code allows it.