Seeing as this has no reply and I ran into the problem too, I am posting a solution here.

Because the trace API was (is?) experimental, some of the calls are translated to RTE_SET_USED(). You need to define ALLOW_EXPERIMENTAL_API in the caller's source file at the very top.