Add instrumentation to the state record.

:construction: WIP

Please advise on best way to make this configurable. The intent is provide enough information in the state record that recreation of an error during timeout is possible.