export function applyTracedProcessorUpdate(
  prev: Record<string, string>,
  processorId: string,
  mode: string,
): Record<string, string> {
  if (mode === 'REMOVE') {
    const next = { ...prev };
    delete next[processorId];
    return next;
  }
  return { ...prev, [processorId]: mode };
}

export function applyRouteRecordingUpdate(
  prev: Record<string, boolean>,
  routeId: string,
  recording: boolean,
): Record<string, boolean> {
  return { ...prev, [routeId]: recording };
}
