fix: Capture session ID from stream headers rather than final event (#3531)