fix handling of periodic record creation
fix request/response case transformation processing
fix active span calculation