Add trace namespace for function tracing