Unless you are impersonating the endpoint or the traffic is destined for outside the Tor network, your solution would only allow you to infer that computer X on an ISP's network communicated with XXXXXXXXXX.onion.
Useful but not quite reading "the transmission both ways unencrypted"