update tracing code