compat: properly handle tracing