tracing: add event trace infrastructure