RecordOutgoing dispatches to the V2 path when the supervisor has attached a session via RecordSession.V2, and to the legacy path otherwise. Keeping both paths live lets the dispatcher / rollback knob (KEPLOY_NEW_RELAY) swap between them without code changes.
(ctx context.Context, session *integrations.RecordSession)
| 121 | // otherwise. Keeping both paths live lets the dispatcher / rollback |
| 122 | // knob (KEPLOY_NEW_RELAY) swap between them without code changes. |
| 123 | func (h *HTTP) RecordOutgoing(ctx context.Context, session *integrations.RecordSession) error { |
| 124 | if session != nil && session.V2 != nil { |
| 125 | return h.recordV2(ctx, session.V2) |
| 126 | } |
| 127 | return h.recordLegacy(ctx, session) |
| 128 | } |
| 129 | |
| 130 | // recordLegacy is the original RecordOutgoing body preserved unchanged. |
| 131 | // It consumes the legacy RecordSession fields (Ingress / Egress / Mocks) |
nothing calls this directly
no test coverage detected