Adding tracing capability to proxy