Add tracing infrastructure.