Pass the kernel, do kernet.Get<ITracer> and do trace from there.