This should be possible with a weak map that maps header objects to a trace id.
Activity