mergeEntities could take an inspectionKey and createDB could take an inspector function that would except one arg {inspectionKey, prevState, patch, nextState}. this info could be logged every time entities were merged and the inspectionKey could give visibility into the call site of mergeEntities.
mergeEntities could take an inspectionKey and createDB could take an inspector function that would except one arg {inspectionKey, prevState, patch, nextState}. this info could be logged every time entities were merged and the inspectionKey could give visibility into the call site of mergeEntities.