Add basic tracing middleware